Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

user input python

age = input('what is your age?: ')
print("You are "+age + " years old")

ans : what is your age?: 23
You are 23 years old

#input method in python.A selected question would prompt and user should ans that.
#after that programme will show age with a text message.
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #user #input #python
ADD COMMENT
Topic
Name
4+4 =