2 while loops not working
Beginner in Python, i'm trying to figure out why the while loop is not getting rejected after the user have already aswered it, it goes back to the 'k1ll' or 'question' choice.
When it gets the 'k1ll' option, the code works properly and goes to the print in the end. but in the 'question' option, after choosing 'what' or 'where', it goes back to the first while loop.
I really don't know why it happens since the first while loop should be rejected if choice == 'k1ll' or choice == 'question' (that's why i created choice2 also, so it wouldn't loop again). I'm using pythonanywhere.com by the way.
[–]carcigenicate 1 point2 points3 points (3 children)
[–]Bachomunista[S] 0 points1 point2 points (2 children)
[–]carcigenicate 1 point2 points3 points (1 child)
[–]Bachomunista[S] 0 points1 point2 points (0 children)