Skip to content

Instantly share code, notes, and snippets.

Created February 2, 2015 06:20
Show Gist options
  • Save anonymous/8f83fe94f91f8c63ea7f to your computer and use it in GitHub Desktop.
Save anonymous/8f83fe94f91f8c63ea7f to your computer and use it in GitHub Desktop.
#the main function
def main():
howmanyloops = input("How many grades will you be entering? ")
checkforcon = howmanyloops%1
if checkforcon == 0:
for i in range (howmanyloops):
score = input("Please enter a grade between 0 and 100: ")
else:
print("You can't enter", howmanyloops, "grades!")
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment