0

Why i got this error in Python!!

I run this code : def concating (name) : return "Hello " + name str = input("Enter your name :") print(concating(str)) I got this error : name 'sara' is not defined What is the problem?

1st Jul 2022, 5:57 PM
Naomi
4 Answers
+ 3
you didnt define the name. name = "sara" thats the solution
1st Jul 2022, 5:59 PM
leo
leo - avatar
0
How do i do this?
1st Jul 2022, 6:03 PM
Naomi
0
check this out. i made a comment https://code.sololearn.com/cVNUD9hSlNH9/?ref=app
1st Jul 2022, 6:05 PM
leo
leo - avatar
0
Thank you!
1st Jul 2022, 6:16 PM
Naomi