0
Functions
We have a function that outputs "Welcome, user" as it is called. We want to make it more personalized, so redesign the given function so that it will take the name of the user as input and output the welcome message with it. Sample Input Tommy Sample Output Welcome, Tommy
5 Antworten
+ 2
Hi! Not Print. It needs print
Print --->>> print
+ 2
Tochukwu Onyebueke a few errors and unnecessaries
Name = input() # by default input() is string unless int or float eg int(input())
def Welcome():
print should be lowercased
print("Welcome "+Name)
Welcome()
Try those corrections and see if that helps.
+ 2
Thanks Yaroslav Vernigora and BroFar
0
Here goes my code;
Name = str(input())
def Welcome():
Print("Welcome," + Name)
Welcome ()
I ran this code on the playground and it worked but somehow I am still stuck at lesson 37.1
0
BroFar I'm still stuck there...