I have written some code for a piece of work i need to do but when i run the code it says
File "/home/ubuntu/workspace/Odeon/153670.py", line 24
age = input("Age or Type: ")
^
IndentationError: expected an indented block
I was wondering if anyone can help ammend this please.
PART of the code where the error is happening is listed below. age = input("Age or Type: ")
print ("Please Input Your age or type.")
while True:
age_type = None
int_count = 0
peak_flag = None
int_age = 0
totalprice = 0
while True:
**age = input("Age or Type: ")** This line brings the error
if unpeak_price_list.keys().__contains__(age.lower()):
age_type = age.lower()
break
try:
int_age = int(age)
if int_age < 2 and int_age > 130:
print("Please Input Correct age.")
continue
break
except:
print("Please Input Correct age or type")