0
Hi! How can I personalized the output? Thanks
I have : def welcome_message(): #redesign this function name= input() print("Welcome, user") I need a sample output that it Will take the given input as the name of the user and output the welcome message with it.
4 Antworten
+ 2
yunuen
or based on your function
def welcome_message():
msg = "Welcome "+ user
return msg
user= input()
print(welcome_message())
+ 2
def welcome_message():
print(f”Welcome {input()}”)
+ 1
Oh i realized what i needed:
def welcome_message():
#redesign this function
name= input()
print ("Welcome, "+name)
welcome_message()
Thanks
0
def welcome_message(name):
return "Welcome {}".format(name)
print(welcome_message(input()))