Complete a script for personalized welcome messages

Report a typo

Imagine, you are creating a simple Python program, which will take some information from the user like name, age and city, it will then generate a welcome message for the user and print it. The skeleton of the code is already written, but some key parts are missing. Your task is to fill the blanks in the code provided to complete the Python script.

Fill in the gaps with the relevant elements
user_name = ("Please enter your name: ")
user_age = (input("Please enter your age: "))
user_city = input("Please enter your city: ")
message = "Hello, " + user_name + ". You are " + str(user_age) + " years old and you live in " + user_city + "."
(message)
inputintprint

Create a free account to access the full topic