Nov-10-2019, 07:27 PM
Hi, why am I getting an invalid syntax error for "student = True"? This code was already initialize for me in the assignment, and when I went to go use it I get a syntax error. Any help or feedback would be greatly appreciated it!
plan = 'M' # ‘M’ = monthly, ‘D’ = daily hours = 35 student = True senior = False total = 0 # write the code to calculate the total below base = 30 hourfee = 3 discount = 0.10 if hours > 30: if student = True: total hour fee = (hours - 30)*hourfee total fee = (total hour fee + base)*discount elseif: student = False: total hour fee = (hours - 30)*hourfee total fee = total hour fee + base print(total fee)