Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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))
Add Comment
Please, Sign In to add comment