Hi everyone, I’m having trouble with a freeCodeCamp Python exercise. I’m supposed to add an elif statement to check whether seat_type == 'Gold' and set service_charges = 3. I added it correctly as far as I can tell, but the tests fail with an indentation error.
The error appears around this section:
if age >= 21 or age >= 18 and (show_time != 'Evening' or is_member):
print('Ticket booking condition satisfied')
service_charges = 0
if seat_type == 'Premium':
service_charges = 5
elif seat_type == "Gold":
service_charges = 3
else:
service_charges = 1
else:
print('Ticket booking failed due to restrictions')
print('Service charges:', service_charges)
FreeCodeCamp says: “Your code has an indentation error. You may need to add pass on a new line to form a valid code block.”
I’ve checked the indentation several times, but I still get the same error. Could someone help me figure out what is causing it?
