Created
February 2, 2015 06:20
-
-
Save anonymous/8f83fe94f91f8c63ea7f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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