+ 8
what will be the out put of the code name=Anu will it be string or characters
4 Answers
+ 5
Python will tell you that the variable Anu is not defined.
Use a pair of quotes or double-quotes to make strings.
name = "Anu"
+ 2
I think this is just an "NameError" you can not assign variable to any unknown variable. Though if it is not known it will assign the value of right side variable to left hand side.
Anu = "Anu"
name = Anu
print(name)
This will do just fine.
+ 1
You would have to put a double quotes around Anu like "Anu" to make it a string
+ 1
ERROR ! ERROR! ERROR! (robotic voice)