I need help i cant run this code

Please help me i cant run this code!

https://replit.com/@emelielindd/Uppdrag3bilfirman#main.py

you need to be indent your if/elif statements to be under your while true loop. Or else python is just going to endless clear the screen and repeat, never moving onto the other lines

5 Likes

Your if/elif statements have an extra space for indentation. Try deleting one indent beginning from the if statements. The if statements should match the indentation of replit.clear()

Like this:

while(True):
 replit.clear()
 
 if menuSelected == 0:
  print(menuOptions[0] + "<--")
  print(menuOptions[1])
3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.