my code was working find on Win machine , python 3.6 then i try the code on mac - terminal and its showing me error. Also have install latest version of python my code:
print ("==================================")
print (" Print all String Character ")
print ("==================================")
word_secund = input("Please add your word: ")
word_one = str(word_secund)
def list(text):
word = 0
for word in text:
print(word)
print (list(word_one))
error message:
Please add your word: Slavo
Traceback (most recent call last):
File "strings.py", line 5, in <module>
word_secund = input("Please add your word: ")
File "<string>", line 1, in <module>
NameError: name 'Slavo' is not defined