Skip to content

Commit e43afd6

Browse files
committed
Updated
1 parent 923d000 commit e43afd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ex059.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88

99
first_value = int(input('Enter a number:'))
1010
second_value = int(input('Enter other number:'))
11-
option = 0
1211

13-
while option != 5:
12+
while True:
1413
print('''Choose an option...
1514
[1] Add
1615
[2] Multiply
@@ -36,6 +35,7 @@
3635
second_value = int(input('Enter other number:'))
3736
elif choice == 5:
3837
print('Finishing...')
38+
break
3939
else:
4040
print('Invalid option. Try again.')
4141
print('End of program.')

0 commit comments

Comments
 (0)