Please tell me where is the error in my code? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Please tell me where is the error in my code?

age = int(input()) name = input() # ĐŒĐ”ŃŃ‚ĐŸ ĐŽĐ»Ń ĐČĐ°ŃˆĐ”ĐłĐŸ ĐșĐŸĐŽĐ° if age >= 18:     print("Welcome " + name) else:     print("Sorry")

11th Apr 2021, 7:33 PM
ĐșĐŸĐœŃŃ‚Đ°ĐœŃ‚ĐžĐœ Đ±ŃƒĐŽĐœĐžĐș
ĐșĐŸĐœŃŃ‚Đ°ĐœŃ‚ĐžĐœ Đ±ŃƒĐŽĐœĐžĐș - avatar
2 Antworten
0
You have invisible invalid characters in code. JUST remove spaces and add again.. or Retype or rewrite all again.. You may copied this from any net sources..
11th Apr 2021, 7:50 PM
Jayakrishna 🇼🇳
0
You miss two " signs.Try to write it like this:- Age = int(input(" ")) name = int(input(" ")) ''' beacuse when we use input command we also need to place two " signs inside the () column to the code to work '''
10th Jul 2023, 7:59 AM
Mr . Ss
Mr . Ss - avatar