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

Phthon question

Hello, can you let me know what is the problem of this? age = int(input()) name = input() # your code goes here if age>=18: print(f"Welcome {name}") else: print("Sorry")

8th May 2022, 3:18 AM
Earl
Earl - avatar
2 Answers
+ 5
Earl Indentation problem. Else should start from beginning of line without space if age>=18: print(f"Welcome {name}") else: print("Sorry")
8th May 2022, 3:21 AM
A͢J
A͢J - avatar
+ 1
Super Thanks! 😆
8th May 2022, 6:54 AM
Earl
Earl - avatar