BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Getting Input from User in Python

Last Updated: January 3, 2018 by Chaitanya Singh | Filed Under: Python Examples

In this tutorial, we will see how to take input from user in Python programming language. We use input() function in Python to get user input.

Get String input from user

In this program we will see how to receive string input from user in Python.

# Python Program - Get String Input from User
str = input("Enter any string: ")
print(str)

Output: