Phython Basics question | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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