Last active
March 8, 2017 18:58
-
-
Save Subzidion/da232602052d0ea11d108bedc3e9f4e7 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
| grades = {} | |
| for cl in s_classes: | |
| while True: | |
| try: | |
| a = int(input("What did you get in {}: ".format(cl))) | |
| print("Registered for {}.".format(cl)) | |
| grades[cl] = a | |
| break | |
| except ValueError: | |
| print("Please give a valid integer") | |
| print(grades) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment