Hi,
My problem is as follows:
In the python 3.6 program, I have my code. Every thing works fine right up until line 94 (here its on line 28) where for some reason when I hit ENTER after the ':' at the end of an 'if' statement, the indentation seems to be off set. Below you can see that I have indented it correctly, but even when I do so in python, it still highlights the ':'. I'm wondering if I might have touched something on the FORMAT tab up-top.
Is this possible?
My problem is as follows:
In the python 3.6 program, I have my code. Every thing works fine right up until line 94 (here its on line 28) where for some reason when I hit ENTER after the ':' at the end of an 'if' statement, the indentation seems to be off set. Below you can see that I have indented it correctly, but even when I do so in python, it still highlights the ':'. I'm wondering if I might have touched something on the FORMAT tab up-top.
Is this possible?
def my_pizza(): print('\nGreat! Please select your pizza by imputting\nthe corresponding number?\n') time.sleep(2) for i, t in pizzas.items(): print(i + ': ' + t) # shows pizza list pizza = input() while pizza not in pizzas.keys(): print('that is not an option') pizza = input() if pizza in pizzas.keys(): print('You have chosen a ' + pizzas[str(pizza)]) time.sleep(2) order.setdefault('Pizza', pizzas[str(pizza)]) # pizza select successful print('Enter Quantity') qty = input() while int(qty) <= 0: print('That is not a number') qty = int(input('Enter Quantity') if int(qty) == 1: [b]# THIS LINE GIVES ERROR AND HIGHLIGHTS ':'[/b] print('You have ordered ' + str(qty) + ' ' + pizzas[str(pizza)]) time.sleep(2) order.setdefault('Qty', str(qty)) elif qty >= 2: print('You have ordered ' + str(qty) + ' ' + pizzas[str(pizza)] + 's') time.sleep(2) order.setdefault('Qty', str(qty))