I try to run this code and write "hello" but get en error:
Value = input("Type less than 6 characters: ")
LetterNum = 1
for Letter in Value:
print("Letter ", LetterNum, " is ", Letter)
LetterNum+=1
if LetterNum > 6:
print("The string is too long!")
break
get error:
>>>
Type less than 6 characters: hello
Traceback (most recent call last):
File "C:/Users/yaron.KAYAMOT/Desktop/forBreak.py", line 1, in <module>
Value = input("Type less than 6 characters: ")
File "<string>", line 1, in <module>
NameError: name 'hello' is not defined
>>>
i don't know why it don't work