r/pythonhelp • u/[deleted] • Dec 05 '20
Why does python ignore this highlighted print() command immediately following the true if statement?
2
Upvotes
1
u/scoopulanang Dec 05 '20
Well, it looks like you're typing what's in direction1 exactly but your while loop only runs if choice1 doesnt equal direction1. Maybe try typing "Get up" instead of "get up"
1
Dec 05 '20
I see, so is it that I've accidentally cut off the while loop before the print() function can be read by Python?
1
u/scoopulanang Dec 05 '20
Yep, you should probably do a while True loop and then in your if statement, break away from the loop after you print whatever you need printed.

1
u/someoneonboard1 Dec 05 '20
Put a breakpoint at line 22 my friend. Run to break and then you can hover over the variables to see whats happening. Thats how you debug your code sir. Maybe you are not getting inside that while loop.