Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. #Vibhav Kanyadan, March 24, Wheeler Mad Libs Game
  2. import random
  3. print("Welcome to the Wheeler Mad Libs Game!")
  4. name = input("What is your name?")
  5. favteach = input("Who is your favorite teacher at Wheeler?")
  6. lfteach = input("Who is your least favorite teacher at Wheeler?")
  7. favclass = input("What is the class taught by your favorite teacher?")
  8. lfclass = input("What is the class taught by your least favorite teacher?")
  9. gradeinfavclass = round(random.uniform(0,100))
  10. gradeinlfclass = round(random.uniform(0,100))
  11. if (gradeinfavclass >=89.5) and (gradeinlfclass >=89.5):
  12. print("There was once a Wheeler student named,", str(name), ". He was a very good student, and, did very good academically. His favorite class in his freshman year was ", str(favclass), ", and his least favorite class was ", str(lfclass), ". His favorite and least favorite teachers, respectively, were " , (favteach), " and " , (lfteach), ". His grade in ", str(favclass) , "was a " , (gradeinfavclass), "and his grade in ",str(lfclass), "was a " , (gradeinlfclass), ". He currently goes to Georgia Tech.")
  13. elif (79.5 <= gradeinfavclass) and (79.5 <= gradeinlfclass):
  14. print("There was once a Wheeler student named,", str(name), ". He was an all-right student, and, did okay academically. His favorite class in his freshman year was ", str(favclass), ", and his least favorite class was ", str(lfclass), ". His favorite and least favorite teachers, respectively, were " , (favteach), " and " , (lfteach), ". His grade in ", str(favclass) , "was a " , (gradeinfavclass), "and his grade in ",str(lfclass), "was a " , (gradeinlfclass), ". He currently goes to KSU.")
  15. else:
  16. print("There was once a Wheeler student named,", str(name), ". He was a bad student, and, did poorly academically. His favorite class in his freshman year was ", str(favclass), ", and his least favorite class was ", str(lfclass), ". His favorite and least favorite teachers, respectively, were " , (favteach), " and " , (lfteach), ". His grade in ", str(favclass) , "was a " , (gradeinfavclass), "and his grade in ",str(lfclass), "was a " , (gradeinlfclass), ". He currently goes to Chattahoochee Technical College.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement