Skip to content

Instantly share code, notes, and snippets.

@Jam6808
Created July 2, 2012 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jam6808/3031345 to your computer and use it in GitHub Desktop.
Save Jam6808/3031345 to your computer and use it in GitHub Desktop.
Class scheduling
#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