5. Write a python program to request the program user to input two personal information (name and age). Then print out those program user personal information as same as the following output.
The output is:
Please input your name: Mark
Please input your age: 20
Answer: Hello, Mark. You are 20 years old now. You can access to this program!
Answer:
user_name = input("Please input your name: ") user_age = input("Please input your age: ") print ("Hello, " + user_name + ". You are " + user_age + " years old now. You can access to this program!")
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)