Created
July 2, 2012 05:56
-
-
Save Jam6808/3031345 to your computer and use it in GitHub Desktop.
Class scheduling
This file contains 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
#Asks for users class information | |
dept_code = input('Enter the department code: ') | |
course_numb = input('Enter the course number: ') | |
section_numb = input('Enter the section number: ') | |
#Checks to see if length of 3 and is numeric | |
def check_course(course_numb): | |
if len(course_numb) == 3 and course_numb.isdigit(): | |
return | |
else: | |
print('WARNING: This may not be a class.') | |
#Checks the information and returns message | |
if section_numb == '01': | |
print('Your course' + " " + check_caps(dept_code) + " " + course_numb + "-" + section_numb + ' meets 7:30 am - 9:00 am, MTWTh') | |
print(check_course(course_numb)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment