Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randrange
- # Auxiliary Functions
- # 1. doIContinue
- def doIContinue():
- answer = input("Continue? ")
- if answer in positiveAnswers:
- print(POSITIVE_CONTINUE[randrange(len(POSITIVE_CONTINUE))])
- print()
- else:
- print(NEGATIVE_CONTINUE[randrange(len(NEGATIVE_CONTINUE))])
- print()
- # 2. Score announcement
- def announceScore(correct, counter):
- percentage = correct / counter
- percentage100 = 100 * percentage
- if percentage100 == int(percentage100):
- print("Score: " + str(correct) + "/" + str(counter) + " = " + str(percentage100) + "%.")
- else:
- print(print("Score: " + str(correct) + "/" + str(counter) + " = " + str(round(percentage100, 1)) + "%."))
- # 3. Next question
- def next(correct, counter):
- doIContinue()
- announceScore(correct, counter)
- print()
- # 4. Reveal the truth
- def revealTheTruth(a, b, c, d, e):
- print()
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
- a = a.upper()
- b = b.upper()
- c = c.upper()
- d = d.upper()
- e = e.upper()
- print(a[0], a[1], " - ", a[2:])
- print(b[0], b[1], " - ", b[2:])
- print(c[0], c[1], " - ", c[2:])
- print(d[0], d[1], " - ", d[2:])
- print(e[0], e[1], " - ", e[2:])
- print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
- # 5. Eyxes
- def eyxes():
- print("Happy birthday little Angie with all my love! May the new year bring us happiness and good luck!")
- print("Your little tomato loves you very much and wants you to be with him!")
- print("I hope you enjoyed the mini quiz about us! It was an effort to prove you my love and care.")
- print("I've been planning this for 2 days only this year, because I learned a lot from the previous year quiz.")
- print("In this one, you were in the position of making guesses about me. Like me last year, you also had to be 'tried'!")
- print("I also hope you are glad in the future and happy in all your life! I love you my little princess <3!")
- print()
- print("Real score in my heart: 100 / 100")
- print()
- # MAIN FUNCTION
- # LAWAUTH, 55 FOCUS
- # Data answers
- positiveAnswers = ["yes", "sure", "of course", "why not", "yeah"]
- negativeAnswers = ["no", "no way", "nope"]
- POSITIVE1 = "Ok nice, let's begin!"
- NEGATIVE1 = "OK, from now on don't be so negative. Let's start."
- POSITIVE_CONTINUE = ["Ok nice, let's continue!", "We go on.", "Nice, we can continue."]
- NEGATIVE_CONTINUE = ["OK, from now on don't be so negative. Let's continue.", "There is no reason not to continue. Of course, we go on.", "After democratical conversation, we agreed to go on!"]
- CORRECT = "Of course, you knew it. 1 point for you. Yeahhh!!!!"
- WRONG = "I made a wrong guess. I guessed "
- POINTS_WRONG = "Score will not increase after this answer..."
- CORRECT_ANGIE = "You are right! That was the answer!"
- WRONG_ANGIE = "No, that's wrong. The correct one was "
- # 0. Introduction - Initialization
- print()
- print("Hello again. I know you didn't wait me, but here I am to surprise you again.")
- print("You are going to take a test, in which we will check if the answers are the same.")
- print("The test includes 20 questions you have to reply!")
- answer1 = input("Ready? ")
- if answer1.lower() in positiveAnswers:
- print(POSITIVE1)
- elif answer1.lower() in negativeAnswers:
- print(NEGATIVE1)
- print()
- print()
- counter = 0
- correct = 0
- # 1st section
- print("~~~~ 1st section ~~~~")
- # 1a. Name
- print("**************************************************************************************************")
- name = input("1) What's your name? ")
- counter += 1
- namesExpected = ["angie", "angeliki", "aggeliki", "angie metheniti", "angeliki metheniti", "aggeliki metheniti"]
- if name.lower() in namesExpected:
- print(CORRECT)
- print("(I know that was an easy one, but I wanted to give you a boost to continue <3.)")
- correct += 1
- else:
- print(WRONG + "Angie...")
- print(POINTS_WRONG)
- next(correct, counter)
- # 1b. Age in decibels
- print("**************************************************************************************************")
- print("Now, a difficult one. YOU have to answer this question (as the following ones also).")
- print("The outcome depends completely on you and on the way you hear me when I talk.")
- print("Reminder: 10 is 10 decibels")
- dB = int(input("2) How many decibels is your age equal to: "))
- counter += 1
- if dB == 100:
- print("Wow, that's amazing! You remember the decibels law. Congratulations!")
- correct += 1
- else:
- print("Your answer is wrong. The correct answer is 100, but I'm gonna count this as a win, because it was a difficult question for you.")
- correct += 1
- next(correct, counter)
- # 1c. Markopoulo
- print("**************************************************************************************************")
- print("The following question is about your city (he he he he.....)")
- print("3) According to Google, tell me an upper bound of Markopoulo's population (answer 'a', 'b' or 'c' - 1 character answer):")
- POSSIBLE = ['a) 5.000, ', 'b) 10.000, ', 'c) 15.000']
- print(''.join(POSSIBLE))
- population = input("Population (a, b, or c): ")
- counter += 1
- if population.lower() == 'b':
- print(CORRECT_ANGIE)
- correct += 1
- else:
- print(WRONG_ANGIE + 'b) 10.000.')
- print(POINTS_WRONG)
- next(correct, counter)
- # 1d. Freddie Mercury
- print("**************************************************************************************************")
- print("This question is about the programme's creator, Thomas.")
- print("Last year, Thomas took this test and gave it to you trying to guess your answers.")
- print("This time, it's your turn. You must guess what he thought of. You say you are keen on this 'hobby'. Let's see")
- singer = input("4) Who is Thomas' favorite frontman-singer? ")
- counter += 1
- singerList= ["freddie", "freddie mercury", "mercury", "freddy", "freddy mercury"]
- if singer.lower() in singerList:
- print(CORRECT_ANGIE)
- correct += 1
- else:
- print(WRONG_ANGIE + "Freddie Mercury.")
- print(POINTS_WRONG)
- next(correct, counter)
- # 1e. NaVi
- print("**************************************************************************************************")
- print("You must have known that Thomas loves a team in CSGO.")
- team = input("5) What's this team name? ")
- counter += 1
- teamList = ["navi", "natus vincere"]
- if team.lower() in teamList:
- print(CORRECT_ANGIE)
- correct += 1
- else:
- print(WRONG_ANGIE + "Natus Vincere also known as NaVi.")
- print(POINTS_WRONG)
- next(correct, counter)
- # 2nd section 'Nomiki' creation
- print("~~~~ 2nd section ~~~~")
- print("This section will make you search about info on the internet if necessary.")
- # 2a. Letter 'N' - Ntompriniste
- print("**************************************************************************************************")
- print("Back in our vacation in Bansko: We selected Razlog and ruled out another one.")
- region = input("6) We DID NOT VISIT this region (write 'nt' instead of 'd', there is a reason): ")
- counter += 1
- regionList = ["ntobriniste", "ntompriniste", "dobriniste", "dompriniste"]
- if region.lower() in regionList:
- print(CORRECT_ANGIE)
- print("We didn't visit Dobriniste or Ntombriniste...")
- correct += 1
- else:
- print(WRONG_ANGIE + "Dobriniste.")
- print(POINTS_WRONG)
- next(correct, counter)
- # 2b. Letter 'O' - October
- print("In 11 of which month were we together for 5 months? Please make the right subtraction and reply in english....")
- month = input("7) Month: ")
- counter += 1
- monthList = ["october", "octovrios", "octobrios"]
- if month.lower() in monthList:
- print(CORRECT_ANGIE)
- correct += 1
- else:
- print(WRONG_ANGIE + "October!")
- print(POINTS_WRONG)
- next(correct, counter)
- # 2c. Letter 'M' - 3rd one of the word Limenas
- print("**************************************************************************************************")
- print("Back in our vacation in Thassos. Write down the 3RD LETTER of the following city.")
- letter = input("8) The city, where we were sleeping for 3 nights! LETTER: ")
- counter += 1
- if letter.lower() == "m":
- print(CORRECT_ANGIE)
- print("'M' is the 3rd letter of word 'Limenas', the city we stayed.")
- correct += 1
- else:
- print(WRONG_ANGIE + "M from the word 'Limenas'.")
- print(POINTS_WRONG)
- next(correct, counter)
- # 2d. Letter 'I' - From Italy (Eurovision 2021)
- print("**************************************************************************************************")
- print("Now, I will remind you the Eurovision Song Contest of 2021. Do you remember the")
- winner = input("9) winner country: ")
- counter += 1
- if winner.lower() == "italy":
- print(CORRECT_ANGIE)
- print("Maneskin was great, wasn't it?")
- correct += 1
- else:
- print(WRONG_ANGIE + "Italy (Maneskin band)...")
- print(POINTS_WRONG)
- next(correct, counter)
- # 2e. Letter 'K' - Kavala
- print("**************************************************************************************************")
- print("Time for an easy one. Before Thassos, we visited some friends in")
- place = input("10) which place: ")
- counter += 1
- if place.lower() == 'kavala' or place.lower() == 'kabala':
- print(CORRECT_ANGIE)
- correct += 1
- else:
- print(WRONG_ANGIE + "Kavala...")
- print(POINTS_WRONG)
- next(correct, counter)
- # 2f. Letter 'I' - Iraklis
- print("**************************************************************************************************")
- print("Thomas' home is near the sports premises and courts of a football team in SKG. Reply in greeklish !!!!")
- footballTeam = input("11) Football Team: ")
- counter += 1
- footballTeamList = ["iraklis", "hraklis", "iraklhs", "hraklhs", "hercules"]
- if footballTeam.lower() in footballTeamList:
- print(CORRECT_ANGIE)
- print("This legend leaves near Kaftantzoglio, Ivanofeio and Katsaneio if you wanted to know...")
- correct += 1
- else:
- print(WRONG_ANGIE + "Iraklis...")
- print(POINTS_WRONG)
- print()
- print()
- print("If you look closely, the last 6 answers can create an acronym, that Angie loves (or not)...")
- print("N - tobriniste")
- print("0 - ctober")
- print("M")
- print("I - taly")
- print("K - avala")
- print("I - raklis")
- next(correct, counter)
- # 3rd section
- print("~~~~ 3rd section ~~~~")
- # 3a. Day born
- print("**************************************************************************************************")
- print("There are 4 questions in this part. I hope you' ve done well in previous sections!")
- print("You can use whatever source you want to find the answer....")
- print("What day was Thomas born? I know that even he doesn't remember sometimes. ")
- print("But maybe your knowledge about signs may help you.")
- day = input("12) Day: ")
- counter += 1
- if day.lower() == 'monday':
- print(CORRECT_ANGIE)
- print("That was not an easy one. Bravo!")
- correct += 1
- else:
- print(WRONG_ANGIE + "Monday...")
- print("Sometimes, I can also be not sure of myself about this one, so don't worry!")
- print(POINTS_WRONG)
- next(correct, counter)
- # 3b. How many days have passed
- print("**************************************************************************************************")
- print("For this question, you have to make a clever calculation yourself or use with an")
- print("an APPROPRIATE way the link below. Try the app to see how it works and how it can help you!")
- print("!!!! REMEMBER TO FIND A WAY THAT HELPS YOU TO ANSWER THE QUESTION USING THE PROGRAMME !!!!")
- print(" ~~~~ LINK ~~~~")
- print("https://pastebin.com/E4AeX0pP")
- daysPassed = int(input("13) So, today how many days have passed since your born day? "))
- counter += 1
- if daysPassed == 18986 - 11681:
- print(CORRECT_ANGIE)
- print("This was the most difficult question. I hope you took the 2 outputs of this file and made a subtraction. Nice!")
- correct += 1
- else:
- print(WRONG_ANGIE + str(7305) + " days (passed).")
- print("Explanation: In the output of this file, giving a single date you can see how many days have passed since 01 January 1970!")
- print("So, you first put as first search the today's day 25 December 2021 and you find: 18986 days.")
- print("After that, you search about 25 December 2001 and you find: 11681 days.")
- print("Subtraction = 18986 - 11681 = 7305.")
- print(POINTS_WRONG)
- next(correct, counter)
- # 3c. Favorite Series
- print("**************************************************************************************************")
- print("Questions 14 and 15 will be about Thomas' preferences in some things! Let's see what you remember...")
- series = input("14) Favorite Thomas' series (only 1): ")
- counter += 1
- seriesList = ["prison break", "prison", "break"]
- if series.lower() in seriesList:
- print(CORRECT_ANGIE)
- print("You have a great memory and care about Thomas!!!!")
- correct += 1
- else:
- print(WRONG_ANGIE + " Prison break.")
- print("He has told you that he has watched the whole series about 3-4 times.... No problem though....")
- print(POINTS_WRONG)
- next(correct, counter)
- # 3d. Favorite Movie
- print("**************************************************************************************************")
- film = input("15) Favorite Thomas' film: ")
- counter += 1
- if film.lower() == "prestige":
- print(CORRECT_ANGIE)
- print("You have a great memory and care about Thomas!!!!")
- correct += 1
- else:
- print(WRONG_ANGIE + " Prestige (2006).")
- print("He has told you that he has watched the movie 3 times and some of them he got confused about the final winner.... No problem though....")
- print(POINTS_WRONG)
- next(correct, counter)
- # 4th section
- print("~~~~ 4th section ~~~~")
- print("In this last section, you have to be more concentrated! A big surprise is waiting for you after the last 5 questions!")
- # 4a. Real Madrid and ....
- print("**************************************************************************************************")
- print("Thomas favorite team in Spain is Real Madrid. As you know the biggest rival of Real is Barcelona and one more team.")
- print("This team won La Liga 2021 and is also from MADRID. Which team is this?")
- rival = input("16) Rival of Real: ")
- counter += 1
- rivalList = ["atletico", "atletico madrid", "atletico de madrid", "club atletico de madrid"]
- if rival.lower() in rivalList:
- print(CORRECT_ANGIE)
- correct += 1
- else:
- print(WRONG_ANGIE + "Atletico (Madrid).")
- print(POINTS_WRONG)
- next(correct, counter)
- # 4b. Nomiki again
- print("**************************************************************************************************")
- print("After question 11, an acronym created (in greeklish language). Write that down again here.")
- acronym = input("17) Acronym: ")
- counter += 1
- acronymCorrect = "nomiki"
- if acronym.lower() == acronymCorrect:
- print(CORRECT_ANGIE)
- correct += 1
- else:
- print(WRONG_ANGIE + "Nomiki (go up to confirm this last answer).")
- print(POINTS_WRONG)
- next(correct, counter)
- # 4c. Gmail
- print("**************************************************************************************************")
- print("Thomas has an email as all people have. Write down the company name!")
- print("Select one of these answers: hotmail, gmail, outlook, yahoo")
- mail = input("18) Type of mail: ")
- counter += 1
- mailList = ["gmail", "2", "b"]
- if mail.lower() in mailList:
- print(CORRECT_ANGIE)
- correct += 1
- else:
- print(WRONG_ANGIE + "Gmail.")
- print(POINTS_WRONG)
- next(correct, counter)
- # 4d - Imagination
- print("**************************************************************************************************")
- print("When someone conceives facts that have not happened or can create beautiful stories and write about myths, we say that this man has huge .......")
- answer1 = input("19) Answer (in english): ")
- counter += 1
- answer1Correct = "imagination"
- if answer1.lower() == answer1Correct:
- print(CORRECT_ANGIE)
- correct += 1
- else:
- print(WRONG_ANGIE + answer1Correct + ".")
- print(POINTS_WRONG)
- next(correct, counter)
- # 4e. Eyes
- print("**************************************************************************************************")
- print("When the sun 'hits' onto my face, you usually say that the color of my .... changes!")
- answer2 = input("20) Answer (in english): ")
- counter += 1
- answer2List = ["eyes", "eye", "mati", "matia"]
- if answer2.lower() in answer2List:
- print(CORRECT_ANGIE)
- correct += 1
- else:
- print(WRONG_ANGIE + "eyes.")
- print("Don't you remember? You say that they become slightly more green!")
- print(POINTS_WRONG)
- next(correct, counter)
- print()
- print()
- # Final Act of Programme
- print("In the last 5 answers there are 2 acronyms hidden!!!! I will give you some time to think about.")
- print("When you find the answer or when you are bored to search further, I will give you the answer.")
- print("Just press any button or write just a single character in the console....")
- print("~~~~", rivalList[0], acronymCorrect, mailList[0], answer1Correct, answer2List[0], "~~~~")
- anything = input("Press any key to continue")
- yesOrNo = input("Do you want to know what do the acronyms hide behind them? ")
- revealTheTruth(rivalList[0], acronymCorrect, mailList[0], answer1Correct, answer2List[0])
- eyxes()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement