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.
 
PREVIOUS NEXT
Tagged: #user #input #python
ADD COMMENT
Topic
Name
7+2 =