How to resolve “invalid number of 'breaks'” [closed]

In Python indentation is very important and so are colons.

For this you would also want to use a if statement and not a for loop.

This code works,

age = int(input("Enter You Age:"))

if age in range (14,18):
    print ("This student is in Highschool")
else:
    print ("This student is not in Highschool")

Browse More Popular Posts

Leave a Comment