repl.it
@MattyB10/

Ray and Justin Civics Project

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import time
def question(question_info):
  print ("\n"+question_set[question_info],"\n1 - "+answer_set1[question_info],"\n2 - "+answer_set2[question_info],"\n3 - "+answer_set3[question_info],"\n4 - "+answer_set4[question_info],"\n5 - "+answer_set5[question_info],"\n6 - "+answer_set6[question_info])
  while True:
    choice = input("What is your choice? ")
    if choice == "1" or choice == "2" or choice == "3" or choice == "4" or choice == "5" or choice == "6":
      counter[int(choice)-1] = int(counter[int(choice)-1])+1
      break
    else:
      print ("Enter a valiid choice!")
#main
counter = [0,0,0,0,0,0]
elements = ("Highdrogen","Helium","Fluorine","Gold","Lithium","Carbon")
element_descriptions = ("You're always the center of the party, and you're bouncy, fun and extroverted. While you can be a bit overwhelming at times, everyone loves you!","You’re a little introverted, and you prefer the comfort of your bedroom to a crowded, noisy party. But you still have your share of friends, and you’re a wonderful person!","You have great initiative. You know what you want and you go out and get it. While this can cloud your vision sometimes, it’s always a good trait to have!","You’re a very grounded person. You have your beliefs, and you keep them strongly. While this can make you stubborn at times, it also makes you driven and perseverant!","You’re super generous, and you love doing things for others and giving back to society. You’re the nicest person ever!","You’re a natural leader. You’re the backbone of every group you’re in, and you’re very well-connected. You are always focused and organized, and have great people skills!")
question_set = ("Q1. Who are you typically at the party?","Q2. How would your friends describe you?","Q3. How do you respond when someone provokes you?","Q4. What food do you like the most?","Q5. What’s your favourite subject from these?","Q6. What music do you listen to?","Q7. What is your favourite sport?","Q8. You and your friends are hanging out together, what are you most likely to bring?","Q9. How likely are you to take free food?","Q10. You and your friends are at a restaurant, which of the following are you most likely to do?","Q11. You and your friends want to hang out but you are unsure where to go. What do you suggest?","Q12. You are working in a group project, what role do you mostly take?","Q13. Your friend is stressed about upcoming summatives, what advice do you provide?","Q14. If one of your friends are being bullied, what actions do you take?","Q15. What’s your favorite beverage?","Q16. What’s your favourite colour?","Q17. What do you do in your spare time?","Q18. Which job do you most prefer out of these?","Q19. What type of movie do you enjoy the most?","Q20. Which is your favourite number?")
answer_set1 = ("The Centre Of Attention","Fun","Exaggerate their emotions","Pizza","Spare","Pop","Basketball","Bluetooth speaker","Depends on your mood","Make a lot of noise","Wonderland","Joker","Just chill, let’s have some fun.","Make a joke to cool down the situation","Red bull","Pink","Hang out with friends","Youtuber","Drama","1")
answer_set2 = ("The Quiet One","Quiet","Quietly back off","Ramen","Math","EDM","I don’t do sports","Headphones","You don’t want to be embarrassed for taking food","Sit in the corner","Your house","Chiller","I wouldn’t say anything.","I’m too scared to help them","Tea","Blue","Chill in my room","Mathematician","Comedy","2")
answer_set3 = ("The One At The Snack Table","Self-Disciplined","Provoke them back","Caviar","Chemistry","Hip-hop","Golf","Nothing","Always","Eat everyone’s food","Community centre","Slacker","Just deal with it.","Attack the bully","LaCroix","Yellow","Work at a part-time job","Businessman","Action","9")
answer_set4 = ("The One Who Does Dares","Headstrong","Ignore them","Curry","History","Metal","Football","Poker Cards","Unlikely","Argue with the waiter","Paintball Arena","Motivator","Wing it!","Confronts the bully but without provoking the bully","Water","White","Play video games","Salesperson","Horror","79")
answer_set5 = ("The One Who Brings Gifts","Nice","Laugh it off","Salad","Geography","Classical","Volleyball","Food (to share!)","Never","Pay for everyone","Restaurant","Hard Worker","It's ok, *proceeds to give lengthy emotional support*","Try to fix things between my friend and the bully","Coke","Green","Volunteer at a charity","Charity worker","Romance","3")
answer_set6 = ("The Party Host","Caring","Handle it seriously","Steak","Gym","Rock","Soccer","Day plan","Usually","Organize the event","Movie Theatre","Leader","Here's a detailed study schedule and my notes.","Tell the bully to stop","Coffee","Purple","Organize a party","CEO","Documentary","6")
question_counter = 0
print("{{{WHAT ELEMENT ARE YOU?}}}\n\nWelcome to Ray and Justin's 'What Element Are You?' Personality Quiz!\nPlease answer these questions with 1 to 6 with the number corresponding to the answer you have chosen") #Title
while question_counter < 20:
  question(question_counter)
  question_counter += 1
print("Calculating your results\n.")
for i in range (2):
  time.sleep(1)
  print (".")
print ("The element we think you are is '"+str(elements[counter.index(max(counter))])+"'!\n"+element_descriptions[counter.index(max(counter))],"\nThank you for taking our quiz!")