Apr-01-2020, 02:37 PM
(This post was last modified: Apr-01-2020, 02:38 PM by TheTechRobo.)
Good day!
I have been developing a text-based calculator in Python 3.x and ran into this problem, my while loop will not stop even though I changed the variable value.
Here is a snippet:
Thanks a bunch !
I have been developing a text-based calculator in Python 3.x and ran into this problem, my while loop will not stop even though I changed the variable value.

Here is a snippet:
done = 0 def true(): done = 1 while done == 0: print('''Please select one: 1 - Equilateral triangle 2 - Right angle triangle 3 - Acute triangle 4 - Obtuse triangle 5 - Square 6 - Rectangle 7 - See more''') choice = input() if choice == 7: print(''' 8 - Parallelogram 9 - Rhombus 10 - Trapezium 11 - Circle 12 - Semicircle 13 - Circular sector 14 - Ring 15 - Ellipse''') elif choice == 1: true() equ_triangle()When I run it, it just keeps saying the original text, 1-Triangle, 2-etc etc etc.
Thanks a bunch !