def teachers(): print "Welcome to the teacher identification room." print "Need help knowing who a teacher you've only seen in the hallways is?" answer = raw_input("Type 'female' or 'male' and hit 'Enter'.").lower() if answer == "female": print "What is their hair like?" answer = raw_input("Type 'curly', 'straight', or 'above the chin' and hit 'Enter'.").lower() if answer == "curly": print "What color is their hair?" answer = raw_input("Type 'light' or 'dark' and hit 'Enter'.").lower() if answer == "light": print "What is their height?" answer = raw_input("Type 'short', 'average', or 'tall' and hit 'Enter'.").lower() if answer == "short": print "This teacher is probably Lisa Moore. She is a coach and she goes by 'Lisa.' However, you could also be thinking of Ms. Durrett." elif answer == "average": print "This teacher is probably Shawn Durrett. She is an english teacher and the dean of faculty and she goes by 'Ms. Durrett.' However, you could also be thinking of Lisa M. or Karen P." elif answer == "tall": print "This teacher is probably Karen Pleasant. She is a history teacher and she goes by 'Karen.' However, you could also be thinking of Ms. Durrett." else: print "You did not pick a height! Try again." elif answer == "dark": print "Here's where it gets tricky." answer = raw_input("Type 'brown' for brown hair and 'black' for black or very dark brown hair and hit 'Enter'.").lower() if answer == "brown": print "Do they wear glasses?" answer = raw_input("Type 'yes' or 'no' and hit 'Enter'.").lower() if answer == "yes": print "You are probably thinking of Ellen Carter. She is the guidance counselor and she goes by 'Ellen.' However, you could also be thinking of Jess." elif answer == "no": print "You are probably thinking of Jessica Durfey. She is a Spanish teacher and she goes by 'Jess.' However, you could also be thinking of Ellen." else: print "You did not pick whether or not they wear glasses! Try again." elif answer == "black": print "What texture is their hair?" answer = raw_input("Type 'very curly' or 'wavy' and hit 'Enter'.").lower() if answer == "very curly": print "You are thinking of either Lauren Cuniffe, the librarian and director of college counseling who goes by 'Lauren,' or Lisa Ganci, the school store manager who goes by 'Lisa.' However, you could also be thinking of Ms. Mahoney." elif answer == "wavy": print "You are probably thinking of Linda Mahoney. She is an art teacher and she goes by 'Ms. Mahoney.' However, you could also be thinking of Lauren or Lisa G." else: "You did not pick a hair texture! Try again." else: print "You did not pick a hair color! Try again." else: print "You did not pick a hair color! Try again." elif answer == "straight": print "How long is their hair?" answer = raw_input("Type 'short' (but if it's above the chin, you should have selected that earlier) or 'long' and hit 'Enter'.").lower() if answer == "short": print "What color is their hair?" answer = raw_input("Type 'light' or 'dark' and hit 'Enter'.").lower() if answer == "light": print "Ok...now expand on that." answer = raw_input("Type 'grey' or 'blonde' and hit 'Enter'.").lower() if answer == "grey": print "You are probably thinking of Leslie Brown. She is in the financial office and she goes by 'Leslie,' although I usually call her 'Leslie Brown.' However, you could also be thinking of Ms. L-T or Carolyn." elif answer == "blonde": print "You are probably thinking of either Aileen Logan-Tyson, a math teacher who goes by 'Ms. L-T,' or Carolyn Flower, a receptionist who goes by 'Carolyn.' However, you could also be thinking of Leslie Brown." else: print "You did not pick a hair color! Try again." elif answer == "dark": print "What is their height?" answer = raw_input("Type 'short' or 'tall' and hit 'Enter'.").lower() if answer == "short": print "What is their ethnicity?" answer = raw_input("Type 'Asian' or 'Caucasian' and hit 'Enter'.").lower() if answer == "Asian": print "You are probably thinking of Chia-Jung Tsou. She is the Chinese teacher and she goes by 'Sara Tsou.' However, you could also be thinking of Kim or Meg." elif answer == "Caucasian": print "You are probably thinking of Kim Mancuso. She is the the theatre teacher and she goes by 'Kim.' However, you could also be thinking of Meg or Sara Tsou." else: print "You did not pick an ethnicity! Try again." elif answer == "tall": print "What is their style?" answer = raw_input("Type 'hipster vintage' or 'normal' and hit 'Enter'.").lower() if answer == "hipster vintage": print "You are probably thinking of Meg Reilly. She is the vocal music teacher and she goes by 'Meg.' However, you could also be thinking of Karen S." elif answer == "normal": print "You are probably thinking of Karen Suchenski. She is a historian and humanities teacher and she goes by 'Karen.' She's an outstanding teacher and deserves infinitely more respect and admiration than she gets, because you will learn more from her than any class could teach you. If it's not her, however, you could also be thinking of Meg." else: print "You did not pick a style! Try again." else: print "You did not pick a height! Try again." else: print "You did not pick a hair color! Try again." elif answer == "long": print "What is their hair color?" answer = raw_input("Type 'blonde' for blonde or red hair or 'brown' for brown hair and hit 'Enter'.").lower() if answer == "blonde": print "This gets tricky. But first, can you narrow down the hair?" answer = raw_input("Type 'red', 'strawberry blonde', or 'blonde' and hit 'Enter'.").lower() if answer == "red": print "You're probably thinking of Tutu Heinonen. She is a history and english teacher and she goes by 'Ms. Heinonen.'" elif answer == "strawberry blonde": print "You are probably thinking of Hannah Richards. She is an art teacher and administator and she goes by 'Hannah.'" elif answer == "blonde": print "What's their style?" answer = raw_input("Type 'yt' for 'yoga pants and track suits', or 'normal' and hit 'Enter'.").lower() if answer == "yt": print "You are probably thinking of Ann Sorvino. She is a dance teacher and she goes by 'Ann.'" elif answer == "normal": print "You are probbaly thinking of Andrea Tehan Carnes, a middle school science teacher who goes by 'Andrea' or Taylor Williams, a science teacher who goes by 'Taylor.'" else: print "You did not pick a style! Try again." else: print "You did not pick a hair color! Try again." elif answer == "brown": print "Can you narrow that down a little?" answer = raw_input("Type 'dark', 'medium', or 'light' and hit 'Enter'.").lower() if answer == "dark": print "You are probably thinking of Ashani Petrizzi. She is an administrator and she goes by Ashani." elif answer == "medium": print "You are probably thinking of either Sara Gibbons, an art teacher who goes by 'Sara,' or Beth Stinchfield, a science teacher who goes by 'Beth.' However, you could also be thinking of Susanna." elif answer == "light": print "You are probably thinking of Susanna Thompson. She is in the Communications department and she goes by 'Susanna.' However, you could also be thinking of Sara G. or Beth." else: print "You did not pick a hair color! Try again." else: print "You did not pick a hair color! Try again." else: print "You did not choose a hair length! Try again." elif answer == "above the chin": print "What is their hair color?" answer = raw_input("Type 'light' for light hair or 'dark' for medium or dark hair and hit 'Enter'.").lower() if answer == "light": "Let us narrow that down a little." answer = raw_input("Type 'blonde' or 'brown' for brown or grey hair and hit 'Enter'.").lower() if answer == "blonde": print "You are probably thinking of either Sally Mixsell, the Head of School (!!!) who goes by 'Sally,' or Judith Nuno, a science teacher who goes by 'Ms. Nuno.'" elif answer == "brown": print "What is their hair texture?" answer = raw_input("Type 'wavy' or 'straight' and hit 'Enter'.").lower() if answer == "wavy": print "You are probably thinking of either Sharon Weyers, and administrator who goes by 'Sharon,' or Susan Smith, the Head of School's assistant who goes by 'Sue.' However, you could also be thinking of Liz or Anne" elif answer == "straight": print "You are probably thinking of either Liz Feeley, an administrator who goes by 'Liz,' or Anne Bridge, an administrator who goes by 'Anne.' However, you could also by thinking of Sue Smith or Sharon." else: print "You did not pick a hair texture! Try again." else: print "You did not pick a hair color! Try again." elif answer == "dark": print "Let us narrow that down." answer = raw_input("Type 'brown' or 'orange' (for orangey brown hair) and hit 'Enter'.").lower() if answer == "brown": print "You are probably thinking of Miriam Przybyla-Baum. She teaches French and goes by 'Miriam.' However, you could also be thinking of Mina." elif answer == "orange": print "You are probably thinking of Mina Payne Williams. She is a riding instructor who goes by 'Mina.' However, you could also be thinking of Miriam." else: print "You did not pick a hair color! Try again." else: print "You did not pick a hair color! Try again." else: print "You did not pick a hair type! Try again." elif answer == "male": print "How long is their hair?" answer = raw_input("Type 'short' or 'long' and hit 'Enter'.").lower() if answer == "short": print "What is their hair color?" answer = raw_input("Type 'light' for blonde or grey hair, and 'dark' for brown or black hair.") if answer == "light": print "Do they wear glasses?" answer = raw_input("Type 'yes' or 'no' and hit 'Enter'.").lower() if answer == "yes": print "How tall are they?" answer = raw_input("Type 'tall' or 'short' and hit 'Enter'.").lower() if answer == "tall": print "You are probably thinking of Eric Swartzentruber. He is the head of the admissions department and he goes by 'Mr. Swartzentruber' or more commonly, 'Mr. S.'" elif answer == "short": print "You are probably thinking of Roger Turton. He is a math teacher and he goes by 'Roger.'" else: print "You did not pick a height! Try again." elif answer == "no": print "Do they remind you more of Mad-eye Moody or Lockhart?" answer = raw_input("Type 'Mad-eye' or 'Lockhart' and hit 'Enter'.").lower() if answer == "mad-eye": print "You are probably thinking of Paul Bassett. He is the debate coach and he goes by 'PB.'" elif answer == "lockhart": print "You are probably thinking of Greg Snedeker. He is a music teacher and he goes by 'Greg.'" else: print "You did not pick a Harry Potter character! Try again." else: print "You did not choose whether or not they wear glasses! Try again." if answer == "dark": print "Do they wear glasses?" answer = raw_input("Type 'yes' or 'no' and hit 'Enter'.").lower() if answer == "yes": print "Is their hair light or dark brown?" answer = raw_input("Type 'light' or 'dark' and hit 'Enter'.").lower() if answer == "light": print "You are probably thinking of Tim McCall. He is a history teacher and he goes by 'Mr. McCall.'" elif answer == "dark": print "You are probably thinking of either Alex Bogel, the academic dean who goes by 'Mr. Bogel,' or Tod Pleasant, the technology director who goes by 'Tod.'" else: print "You did not pick a hair color! Try again." elif answer == "no": print "Do they wear green all the time?" answer = raw_input("Type 'yes' or 'no' and hit 'Enter'.").lower() if answer == "yes": print "You are probably thinking of Jason Brown. He works in the technology department and he goes by 'Jason.'" elif answer == "no": print "You are probably thinking of either Jeff Conlon, the athletic director who goes by 'Jeff,' or John Larson, the dean of students who goes by 'Mr. Larson.'" else: print "You did not choose whether or not they usually wear green! Try again." else: print "You did not choose whether or not they wear glasses! Try again." else: print "You did not pick a hair color! Try again." if answer == "long": print "You are probably thinking of Bill Ivey. He is the Middle School Dean, Humanities 7 teacher, and Rock Band teacher, and he goes by 'Bill.'" else: print "You did not pick a hair length! Try again." else: print "You did not pick a gender! Try again." print "I hope you were able to successfully use this software to identify the teacher you were trying to identify!" teachers() teachers()
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question