What’s wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What’s wrong?

Can’t pass the test age = int(input()) name = input() if age >=18: print ("Welcome "+str(name)) else: print ('Sorry '+str(name))

29th Sep 2020, 5:51 AM
Mikhail Kulikov
3 Answers
29th Sep 2020, 6:12 AM
Simba
Simba - avatar
+ 5
Remove str() from name coz name stores a string .therefore no need for conversion.
29th Sep 2020, 5:58 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 3
Please tag Python for the question ☝
29th Sep 2020, 6:15 AM
Ipang