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.

23rd Jun 2022, 6:31 PM
Yunuen Sarasuadi Acosta Meza
Yunuen Sarasuadi Acosta Meza - avatar
4 Antworten
+ 2
yunuen or based on your function def welcome_message(): msg = "Welcome "+ user return msg user= input() print(welcome_message())
23rd Jun 2022, 6:46 PM
BroFar
BroFar - avatar
+ 2
def welcome_message(): print(f”Welcome {input()}”)
23rd Jun 2022, 8:20 PM
Jeremias
+ 1
Oh i realized what i needed: def welcome_message(): #redesign this function name= input() print ("Welcome, "+name) welcome_message() Thanks
23rd Jun 2022, 6:49 PM
Yunuen Sarasuadi Acosta Meza
Yunuen Sarasuadi Acosta Meza - avatar
0
def welcome_message(name): return "Welcome {}".format(name) print(welcome_message(input()))
23rd Jun 2022, 8:04 PM
Sator Arepo🌾🌌
Sator Arepo🌾🌌 - avatar