Phython Basics question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Phython Basics question

What's I'm doing wrong? My code: age = int(input()) name = input() if age>=18: print("Welcome" + name) else: print("Sorry") My output: WelcomeAmy (and other few names) Needed output: Welcome Amy

5th Aug 2022, 3:45 PM
Anna - Alina
2 Answers
+ 2
print("Welcome "+ name) # space Or print(" Welcome" , name)
5th Aug 2022, 3:52 PM
Jayakrishna 🇮🇳
+ 1
I'll try. Thank you.
5th Aug 2022, 3:52 PM
Anna - Alina