Toggle navigation
Log in
Sign Up
Log in
Sign Up
Appium
C
C#
C++
Docker
Go
Informatica
Java
JavaScript
Kafka
Numpy
Oracle
Pandas
PHP
Py Spark
Python
R
React Native
Scipy
SFTP
Tableau
Teradata
TGMC
UNIX
Introducing
Radical.sh
Forget Code launches a powerful code generator for building API's
Forget_Code.Models.CategoryViewModel
Add a new snippet
Basics
3
Conditional Statements
2
Dictionary
4
Input & Output
1
Lists
20
Sorting
1
Strings
1
Tuple
4
Choose Category
Get input from user in Python
Forget Code
Python
Get input from user
In python, input function can be used to get the input data from user. By default, input box is displayed when executed in jupyter console and line prompting to enter the data is displayed in console. input returns the data in string format, type casting is required if data has to be converted to float or int.
Example : Get input from user in python
name = input("Enter your name: ") print("User entered "+name)
Input Prompt
Enter your name: Forgetter
Output
User entered Forgetter
Tags for Get input from user in Python
get input from console
ask for user data in python
DP_Input & Output
Contribute to Forget Code, help others.
Add snippet