Open snoock opened 6 years ago
Yes, the problem is your are inserting to a String variable this:
continue = yes
You have to make it like this:
continue = 'yes'
for that not write
yes
Write on the terminal
'yes'
And its going to work perfect.
Getting the same error. Even if i type 'yes' the bot will restart at the main menu. Someone please can help ?
Greeting
bump
Same
Enter the number of the action that you want to take: 3 Do you want to keep going? Enter yes or no. yes
Traceback (most recent call last): File "D:\tweet\twitterBot.py", line 344, in
main_menu()
File "D:\tweet\twitterBot.py", line 67, in main_menu
Continue()
File "D:\tweet\twitterBot.py", line 328, in Continue
keep_going = input('Do you want to keep going? Enter yes or no. \n'
File "", line 1, in
NameError: name 'yes' is not defined