Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

user information in 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 #information #python
ADD COMMENT
Topic
Name
8+2 =