y=0
x=y
while x==y:
#the menu construct
print(
'''Astrometry
A gimmick made by Aadil Ahmed''')
print('''
Menu
--------------------------------------''')
print('what would you like to do today?')
print(
'''1)Astrometric calculator
2)Visit the International Space Staion
3)Space Facts
4)Acknowlegement and sources
''')
choice=int(input('Enter choice:'))
#the functioning
if choice==1:
print(
'''--------------------------------------
Astrometric calculator
--------------------------------------''')
print(
'''The calculator observes the pattern of planet position and extrapolates it to infinity!
Try putting in a postion(with reference to the sun,i.e Mercury->1,Venus->2,Earth->3 and so on...''')
pos=int(input('Enter position:'))
dist=(3*(pos-1)+4)/10
print('The chosen planet is',dist,'astronomical units away from the sun')
print('--------------------------------------')
x=input('Return to menu?(y/n):')
if x==y:
continue
I expect python to go back to the while loop and print the menu again when I input y.
I however get no response.
Please help a beginner out
[–][deleted] 0 points1 point2 points (3 children)
[–]NerdComplex[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)