Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- def support():
- #keeps going round until a valid response is given
- while(True):
- support = str(input("Do you need support with Maths or English "))
- if support == "maths" or support == "Maths":
- math()
- elif support == "english" or support == "English":
- english()
- else:
- print("Please enter a valid response")
- def math():
- #math fucntion
- while(True):
- mathhelp = str(input("Ok, is there anything in particular you need help with in Maths? "))
- if mathhelp == "excel" or mathhelp == "Excel":
- daycheck()
- elif mathhelp == "latex" or mathhelp == "LATEX":
- daycheck2()
- elif mathhelp == "matlab" or mathhelp == "MATLAB":
- daycheck3()
- elif mathhelp == "r" or mathhelp == "R":
- daycheck4()
- elif mathhelp == "stats and maths" or mathhelp == "STATS AND MATHS":
- daycheck5()
- elif mathhelp == "python" or mathhelp == "PYTHON":
- daycheck6()
- elif mathhelp == "maple" or mathhelp == "MAPLE":
- daycheck7()
- elif mathhelp == "spss" or mathhelp == "SPSS":
- daycheck8()
- elif mathhelp == "logic and sets" or mathhelp == "LOGIC AND SETS":
- daycheck9()
- elif mathhelp == "minitab" or mathhelp == "MINITAB":
- daycheck10()
- else:
- print("Please enter a valid response")
- def daycheck():
- #checks for what days user is free for excel support
- dayfree = str(input("What day are you free "))
- if dayfree == "monday" or dayfree == "Monday":
- print("Mark Hodds is free to help from 4pm-6pm")
- sys.exit(0)
- elif dayfree == "tuesday" or dayfree == "Tuesday":
- print("Sorry there is no one available on Tuesday for Excel support")
- sys.exit(0)
- elif dayfree == "wednesday" or dayfree == "Wednesday":
- print ("Mark Hodds is available to help 2pm-4pm ")
- sys.exit(0)
- elif dayfree == "thursday" or dayfree == "Thursday":
- print ("Mark Hodds is available to help 12pm-1pm ")
- sys.exit(0)
- elif dayfree == "friday" or dayfree == "Friday":
- print ("Mark Hodds is available to help 10am-11am, 2pm-3pm and 5pm-6pm")
- sys.exit(0)
- elif dayfree == "saturday" or dayfree == "Saturday":
- print ("Sorry no one is available for excel support on saturday")
- sys.exit(0)
- elif dayfree == "sunday" or dayfree == "Sunday":
- print ("Sorry no one is available for excel support on sunday")
- sys.exit(0)
- def english():
- #english fucntion
- print ("To get english support please visit https://cawbookings.coventry.ac.uk/")
- def daycheck2():
- #checks for what days user is free for latex support
- dayfree = str(input("What day are you free "))
- if dayfree == "monday" or dayfree == "Monday":
- print("Aiping Xu is free from 11am-noon and 3pm-4pm ")
- sys.exit(0)
- elif dayfree == "tuesday" or dayfree == "Tuesday":
- print("Aiping Xu is free from 2pm-3pm and Jim Tabor is free from 3pm-5pm")
- sys.exit(0)
- elif dayfree == "wednesday" or dayfree == "Wednesday":
- print ("James Griffin is free from 1pm-2pm, Mark Hodds is available from 2pm=4pm and Aiping Xu is free from 3pm-4pm ")
- sys.exit(0)
- elif dayfree == "thursday" or dayfree == "Thursday":
- print ("Aiping Xu is free to help from 10am-noon ")
- sys.exit(0)
- elif dayfree == "friday" or dayfree == "Friday":
- print ("Mark Hodds is available to help 10am-11am, 2pm-3pm and 5pm-6pm")
- sys.exit(0)
- elif dayfree == "saturday" or dayfree == "Saturday":
- print ("Sorry no one is available for Latex support on saturday")
- sys.exit(0)
- elif dayfree == "sunday" or dayfree == "Sunday":
- print ("Sorry no one is available for Latex support on sunday")
- sys.exit(0)
- def daycheck3():
- #checks for what days user is free for matlab support
- dayfree = str(input("What day are you free "))
- if dayfree == "monday" or dayfree == "Monday":
- print("Aiping Xu is free from 11am-noon and 3pm-4pm, Jia Shao is free from 2pm-4pm, Mark Hodds is free from 4pm-6pm and Jim Rabor is free from 6pm-8pm ")
- sys.exit(0)
- elif dayfree == "tuesday" or dayfree == "Tuesday":
- print("Aiping Xu is free from 2pm-3pm and Jim Tabor is free from 3pm-5pm")
- sys.exit(0)
- elif dayfree == "wednesday" or dayfree == "Wednesday":
- print ("Jia Shao is free from 11am-1pm and Aiping Xu is free from 3pm-4pm ")
- sys.exit(0)
- elif dayfree == "thursday" or dayfree == "Thursday":
- print ("Aiping Xu is free to help from 10am-noon, 2pm-4pm and Jim Tabor is free from 4pm-5pm ")
- sys.exit(0)
- elif dayfree == "friday" or dayfree == "Friday":
- print ("Jia Shao is free from 3pm-5pm ")
- sys.exit(0)
- elif dayfree == "saturday" or dayfree == "Saturday":
- print ("Sorry no one is available for matlab support on saturday")
- sys.exit(0)
- elif dayfree == "sunday" or dayfree == "Sunday":
- print ("Sorry no one is available for matlab support on sunday")
- sys.exit(0)
- def daycheck4():
- #checks for what days user is free for R support
- dayfree = str(input("What day are you free "))
- if dayfree == "monday" or dayfree == "Monday":
- print("Liam Brierely is free from noon-1pm and Jia Shao is free from 2pm-4pm ")
- sys.exit(0)
- elif dayfree == "tuesday" or dayfree == "Tuesday":
- print("Sorry no one is free for R support ")
- sys.exit(0)
- elif dayfree == "wednesday" or dayfree == "Wednesday":
- print ("Jia Shao is free from 11am-1pm ")
- sys.exit(0)
- elif dayfree == "thursday" or dayfree == "Thursday":
- print ("Liam Brierely is free from 2pm-4pm ")
- sys.exit(0)
- elif dayfree == "friday" or dayfree == "Friday":
- print ("Liam Brierely is free from 11am-2pm and Jia Shao is free from 3pm-5pm ")
- sys.exit(0)
- elif dayfree == "saturday" or dayfree == "Saturday":
- print ("Sorry no one is available for R support on saturday")
- sys.exit(0)
- elif dayfree == "sunday" or dayfree == "Sunday":
- print ("Sorry no one is available for R support on sunday")
- sys.exit(0)
- def daycheck5():
- #checks for what days user is free for R support
- dayfree = str(input("What day are you free "))
- if dayfree == "monday" or dayfree == "Monday":
- print("Mark Hodds is free from 4pm-6pm ")
- sys.exit(0)
- elif dayfree == "tuesday" or dayfree == "Tuesday":
- print("Sorry no one is free for stats and maths support ")
- sys.exit(0)
- elif dayfree == "wednesday" or dayfree == "Wednesday":
- print ("Mark Hodds is free from 2pm-4pm ")
- sys.exit(0)
- elif dayfree == "thursday" or dayfree == "Thursday":
- print (" Mark Hodds is free from noon-1pm ")
- sys.exit(0)
- elif dayfree == "friday" or dayfree == "Friday":
- print ("Mark Hodds is free from 10am-11am, 2pm-3pm and 5pm-6pm ")
- sys.exit(0)
- elif dayfree == "saturday" or dayfree == "Saturday":
- print ("Sorry no one is available for stats and maths support on saturday")
- sys.exit(0)
- elif dayfree == "sunday" or dayfree == "Sunday":
- print ("Sorry no one is available for stats and maths support on sunday")
- sys.exit(0)
- def daycheck6():
- #checks for what days user is free for python support
- dayfree = str(input("What day are you free "))
- if dayfree == "monday" or dayfree == "Monday":
- print("sorry no one is available for python support ")
- sys.exit(0)
- elif dayfree == "tuesday" or dayfree == "Tuesday":
- print("Sorry no one is free for stats and maths support ")
- sys.exit(0)
- elif dayfree == "wednesday" or dayfree == "Wednesday":
- print ("James Griffin is free from 1pm-2pm ")
- sys.exit(0)
- elif dayfree == "thursday" or dayfree == "Thursday":
- print (" James griffin is free from 2pm-3pm ")
- sys.exit(0)
- elif dayfree == "friday" or dayfree == "Friday":
- print (" sorry no one is available for python support ")
- sys.exit(0)
- elif dayfree == "saturday" or dayfree == "Saturday":
- print ("Sorry no one is available for python support")
- sys.exit(0)
- elif dayfree == "sunday" or dayfree == "Sunday":
- print ("Sorry no one is available for python support")
- sys.exit(0)
- def daycheck7():
- #checks for what days user is free for Maple support
- dayfree = str(input("What day are you free "))
- if dayfree == "monday" or dayfree == "Monday":
- print(" Jim Tabor is free from 6pm-8pm ")
- sys.exit(0)
- elif dayfree == "tuesday" or dayfree == "Tuesday":
- print("Jim Tabor is free from 3pm-5pm ")
- sys.exit(0)
- elif dayfree == "wednesday" or dayfree == "Wednesday":
- print ("Sorry no one is available for Maple support ")
- sys.exit(0)
- elif dayfree == "thursday" or dayfree == "Thursday":
- print (" Jim Tabor is free from 2pm-3pm ")
- sys.exit(0)
- elif dayfree == "friday" or dayfree == "Friday":
- print (" sorry no one is available for maple support ")
- sys.exit(0)
- elif dayfree == "saturday" or dayfree == "Saturday":
- print ("Sorry no one is available for maple support")
- sys.exit(0)
- elif dayfree == "sunday" or dayfree == "Sunday":
- print ("Sorry no one is available for maple support")
- sys.exit(0)
- def daycheck8():
- #checks for what days user is free for SPSS support
- dayfree = str(input("What day are you free "))
- if dayfree == "monday" or dayfree == "Monday":
- print(" Liam Brierely is free from noon-1pm, Jia Shao is free from 2pm-4pm and Mark Hodds is free from 4pm-6pm ")
- sys.exit(0)
- elif dayfree == "tuesday" or dayfree == "Tuesday":
- print("Tim Sparks is free from 1pm-3pm ")
- sys.exit(0)
- elif dayfree == "wednesday" or dayfree == "Wednesday":
- print ("Jia Shao is free from 11am-1pm and Mark Hodds is free from 2pm-4pm ")
- sys.exit(0)
- elif dayfree == "thursday" or dayfree == "Thursday":
- print (" Mark Hodds is free from noon-1pm, Liam Brierely is free from 2pm-4pm and Tim Sparks is free from 4pm-6pm ")
- sys.exit(0)
- elif dayfree == "friday" or dayfree == "Friday":
- print (" Mark Hodds is free from 10am-11am, 2pm-3pm, 5pm-6pm. Liam Brierely is free from 11am-2pm and Jia Shao is free from 3pm-5pm ")
- sys.exit(0)
- elif dayfree == "saturday" or dayfree == "Saturday":
- print ("Sorry no one is available for SPSS support")
- sys.exit(0)
- elif dayfree == "sunday" or dayfree == "Sunday":
- print ("Sorry no one is available for SPSS support")
- sys.exit(0)
- def daycheck9():
- #checks for what days user is free for Logic and sets support
- dayfree = str(input("What day are you free "))
- if dayfree == "monday" or dayfree == "Monday":
- print("Aiping Xu is free from 11-noon and 3pm-4pm ")
- sys.exit(0)
- elif dayfree == "tuesday" or dayfree == "Tuesday":
- print("Dorothea Kondrat is free from noon-2pm and Aiping Xu is free from 2pm-3pm ")
- sys.exit(0)
- elif dayfree == "wednesday" or dayfree == "Wednesday":
- print ("Aiping Xu is free from 3pm-4pm ")
- sys.exit(0)
- elif dayfree == "thursday" or dayfree == "Thursday":
- print (" Aiping Xu is free from 10am-noon and 2pm-4pm ")
- sys.exit(0)
- elif dayfree == "friday" or dayfree == "Friday":
- print ("Sorry no one is available for logic and sets support ")
- sys.exit(0)
- elif dayfree == "saturday" or dayfree == "Saturday":
- print ("Sorry no one is available for logic and sets support ")
- sys.exit(0)
- elif dayfree == "sunday" or dayfree == "Sunday":
- print ("Sorry no one is available for logic and sets support ")
- sys.exit(0)
- #Main fucntion call where the function support is called
- def main():
- support()
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement