More Exercises#
Here are extra exercises for the previous parts of the course. We encourage you to do them all, to get as much practice as possible.
Your address#
Create three variables containing your name, street address and city. Then print these variables on three separate lines.
User input#
We can use the function input(question)
to ask the user a question and get a reply.
question
is a string that is printed to the user. We can store the result in a variable, for example:
name = input("What's your name? ")
Use the input function to ask for the user’s name and age (separately). Then print a greeting including the user’s name.