Guest User

Untitled

a guest
Nov 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #Asks for users class information
  2. dept_code = input('Enter the department code: ')
  3. course_numb = input('Enter the course number: ')
  4. section_numb = input('Enter the section number: ')
  5.  
  6. #Checks to see if length of 3 and is numeric
  7. def check_course(course_numb):
  8. if len(course_numb) == 3 and course_numb.isdigit():
  9. return
  10. else:
  11. print('WARNING: This may not be a class.')
  12.  
  13.  
  14. #Checks the information and returns message
  15. if section_numb == '01':
  16. print('Your course' + " " + check_caps(dept_code) + " " + course_numb + "-" + section_numb + ' meets 7:30 am - 9:00 am, MTWTh')
  17. print(check_course(course_numb))
Add Comment
Please, Sign In to add comment