name = input("What is your name? ")Line-by-line explanation
inputdisplays a question and waits.- The text inside brackets is the question.
- The user types an answer and presses Enter.
namestores that answer as a string.
input() always returns a string, even if the person types digits.
age_text = input("Age: ")Line-by-line explanation
- The prompt
Age:appears. - The user types an answer.
age_textstores text such as"12".