Articles → Python → Keyboard Input From The User In Python
Keyboard Input From The User In Python
Example
name = input("Please enter your name:")
print("Welcome ", name, "!!!")
Getting The Integer Value From The Input Element
age = input("Please enter your age:")
print(type(age))
age = input("Please enter your age:")
print(type(eval(age)))
Posted By - | Karan Gupta |
|
Posted On - | Friday, March 1, 2019 |
|
Updated On - | Friday, September 17, 2021 |