What is wrong with this code 😅 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is wrong with this code 😅

NAME =str(input(enter the name: ) Print ("hello",NAME) I tried this code alot but every time when I enter the name they say it is not defined 😅 and I don't know how to solve this problem ! By the way it is in python language

4th Oct 2022, 5:54 PM
Esraa Elsayed Mohamed
Esraa Elsayed Mohamed - avatar
4 Answers
+ 4
NAME = input("enter the name:")
4th Oct 2022, 6:06 PM
Solo
Solo - avatar
+ 3
Your Code: NAME =str(input(enter the name:)) Print("hello",name) My Code: NAME = input("enter the name:") print("hello",NAME) Other Code: print("hello",input("enter the name:"))
4th Oct 2022, 8:51 PM
NinjaGamer
NinjaGamer - avatar
0
It must work. Maybe you've forgot to close the bracket.
5th Oct 2022, 11:14 PM
As Manjaka Josvah
As Manjaka Josvah - avatar
0
You forgot to close the bracket
6th Oct 2022, 8:39 PM
Christabel
Christabel - avatar