370,019 views
21 votes
21 votes
There's an issue with my code help please

def main():
print(“there’s a special discount on video games”)
Input = (age(‘are you over the age of thirteen?’)
if(age >= 13):
print(“are you on the honor-roll””?”)
else :
print(“sorry only those over 13 qualify”)
Input = grades(‘have you made the honor-roll?’)
if(grades > C):
print(“well done you qualify”"!")
else :
print(“sorry you have to be an honor-roll student to qualify for the discount”)
main()

User Yves Junqueira
by
2.4k points

1 Answer

15 votes
15 votes

Answer:

I assume you want it written with correct python syntax.

def main():

print("there is a special discount on video games")

age = input(int("How old are you?")

if age >= 13:

print("are you on the honor-roll?")

else:

print("sorry only those above 13 qualify")

grades = input("What grade did you get?")

if grades > "C":

print("well done you qualify!")

else:

print("sorry you have to be an honor-roll student to qualify")

main()

You need the correct indentations

Step-by-step explanation:

User Laurentiu Stamate
by
2.8k points