Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

activity | 1.14.1: lab: input: welcome message full screen 0/10 write a…

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!\)

Explanation:

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!")

Answer:

user_name = input()
print(f"Hey {user_name}")
print("Welcome to zyBooks!")