QUESTION IMAGE
Question
activity | 1.14.1: lab: input: welcome message
full screen 0/10
write a program that takes a first name as the input, and outputs a welcome message to that name.
ex: if the input is pat, the output is:
hey pat
welcome to zybooks!
open new tab | dock
run
history tutorial
main.py
1 user_name = input()
2
3 print(\welcome to zybooks!\)
Step1: Get user's first name
user_name = input()
Step2: Print personalized greeting line
print(f"Hey {user_name}")
Step3: Print fixed welcome line
print("Welcome to zyBooks!")
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
user_name = input()
print(f"Hey {user_name}")
print("Welcome to zyBooks!")