Skip to content

Instantly share code, notes, and snippets.

@akosijose
Last active August 24, 2022 21:06
Show Gist options
  • Save akosijose/38565c1ec9d833d40ff5153471aacd23 to your computer and use it in GitHub Desktop.
Save akosijose/38565c1ec9d833d40ff5153471aacd23 to your computer and use it in GitHub Desktop.
questions = ["You went to a party last night and when you arrived to school the next day, everybody is talking about something you didn't do. What will you do?",
"What quality do you excel the most?",
"You are walking down the street when you see an old lady trying to cross, what will you do?",
"You had a very difficult day at school, you will maintain a attitude",
"You are at a party and a friend of yours comes over and offers you a drink, what do you do?",
"You just started in a new school, you will...",
"In a typical Friday, you would like to..",
"Your relationship with your parents is..."]
letter_a = []
letter_b = []
letter_c = []
def whatNumber(num):
if num == "a":
letter_a.append(1)
elif num == "b":
letter_b.append(1)
elif num == "c":
letter_c.append(1)
else:
print("invalid input")
quit()
# 1
print(f"Question 1. {questions[0]}")
print("a. Avoid everything and go with your friends \nb. Go and talk with the person that started the rumors \nc. Go and talk with the teacher")
numberOne = input("Choose a letter: ").lower()
whatNumber(numberOne)
# 2
print(f"Question 2. {questions[1]}")
print("a. Empathy \nb. Curiosity \nc. Perseverance")
numberTwo = input("Choose a letter: ").lower()
whatNumber(numberTwo)
# 3
print(f"Question 3. {questions[2]}")
print("a. Go and help her \nb. Go for a policeman and ask him to help \nc. Keep walking ahead")
numberThree = input("Choose a letter: ").lower()
whatNumber(numberThree)
# 4
print(f"Question 4. {questions[3]}")
print("a. Depends on the situation \nb. Positive \nc. Negative")
numberFour = input("Choose a letter: ").lower()
whatNumber(numberFour)
# 5
print(f"Question 5. {questions[4]}")
print("a. Say no thanks \nb. Drink it until it is finished \nc. Ignore him and get angry at him")
numberFive = input("Choose a letter: ").lower()
whatNumber(numberFive)
# 6
print(f"Question 6. {questions[5]}")
print("a. Go and talk with the person next to you \nb. Wait until someone comes over you \nc. Not talk to anyone")
numberSix = input("Choose a letter: ").lower()
whatNumber(numberSix)
# 7
print(f"Question 7. {questions[6]}")
print("a. Go out with your close friends to eat \nb. Go to a social club and meet more people \nc. Invite one of your friends to your house")
numberSeven = input("Choose a letter: ").lower()
whatNumber(numberSeven)
# 8
print(f"Question 8. {questions[7]}")
print("a. I like both equally \nb. I like both equally \nc. I like my Mom the most")
numberEight = input("Choose a letter: ").lower()
whatNumber(numberEight)
# count the answer
print("Count the answer")
print("Count(a): " + str(sum(letter_a)))
print("Count(b): " + str(sum(letter_b)))
print("Count(c): " + str(sum(letter_c)))
sumOf_b_c = len(letter_b) + len(letter_c)
print("Total Answers: " + str(sum(letter_a, sumOf_b_c)))
print("4. Display Results based on the answers")
def displayFinalResults():
newLetterA = sum(letter_a)
newLetterB = sum(letter_b)
newLetterC = sum(letter_c)
if newLetterA == 3 and newLetterB == 3:
print("Self-Awareness You are conscious of your own character, feelings, motives, and desires. The process can be painful but it leads to greater self-awareness.")
elif newLetterA == 3 and newLetterC == 3:
print("Empathy You are emphatic. You see yourself in someone else’s situation before doing rash decisions. You tend to listen to other’s voices.")
elif newLetterB == 3 and newLetterC == 3:
print("Self-Management You manage yourself well; You take responsibility for your own behavior and well-being")
elif newLetterA >= newLetterB and newLetterA >= newLetterC:
print("Empathy You are emphatic. You see yourself in someone else’s situation before doing decisions. You tend to listen to other’s voices.")
elif newLetterB >= newLetterA and newLetterB >= newLetterC:
print("Self-Awareness You are conscious of your own character, feelings, motives, and desires. The process can be painful but it leads to greater self-awareness.")
elif newLetterC >= newLetterA and newLetterC >= newLetterB:
print("Self-Management You manage yourself well; You take responsibility for your own behavior and well-being.")
displayFinalResults()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment