repl.it
@AHulot/

TEST_Interactive_Repl_005

Python

Just a totally random thing I made when I got bored. Very basic stuff.

fork
loading
Files
  • main.py
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
from termcolor import colored, cprint
import replit

replit.clear()

cprint("Answer the following questions by typing and then press enter.", "green")

print("")
cprint("Do not use capital letters.(You can use them for your name if you want.)","green")
print("")
print("Hello User,")
UserName = input("What is your name? My name is: ")
print("")
print("Hello " + UserName + ",")
print("")
print("It's a pleasure to meet you.")
print("")
print("I don't have a name, I am made up of code.")
print("")
Answer = input("Do you want to play a game with me? (Type yes/no): ")
if Answer == "yes":
  print("")
  print("Yay!")
  print("Let's begin.")
  print("")
  MathAnswer = input("1 + 1 = ")
  if MathAnswer == "2":
    print("")
    print("Nice!")
  else: 
    print("")
    print("Oops that is wrong.")
  print("")
  print("Next Question!")
  print("")
  MathAnswer = input("2 x 4 = ")
  if MathAnswer == "8":
    print("")
    print("Very good!")
  else:
    print("")
    print("Sorry, that's incorrect.")
  print("")
  print("Now we can do some riddles!")  
  print("")
  RiddleAnswer = input("The more you take, the more you leave behind. What am I? I am your: ")
  if RiddleAnswer == "footsteps":
    print("")
    print("Yes! You got it!")
  else:
    print("")
    print("Oopsie, that's wrong.")
    print("The answer was footsteps.")
  print("")
  print("Let's have another one!")
  print("")
  RiddleAnswer = input("What has a head, a tail, is brown,and has no legs? ")
  if RiddleAnswer == "a coin" or RiddleAnswer == "coin":
    print("")
    print("Yeah! That's right!")
  else:
    print("")
    print("Nearly! The answer was a coin.")
  print("")
  print("Now, another one!")
  print("")
  RiddleAnswer = input("Name three consecutive days without using the words Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, or Sunday? ")
  if RiddleAnswer == "yesterday, today and tomorrow":
    print("")
    print("Yes! You got it!")
  else:
    print("")
    print("Not exactly! The answer was yesterday, today and tomorrow.")
  print("")
  print("Okay, now the game ends.")
  print("")
  print("Well, maybe not...")
  print("")
  print("...")
  print("")
  input("So, " + UserName + ", do you have any talents? What are you good at? I am good at: ")
  print("")
  print("Interesting, I am not very good at that.")
elif Answer == "no":
  print("Oh, Okay then.")
  print(" :-(")
  print("I'm not exactly sure what to do now. Type yes next time to see most of the code in action.")
print("")
cprint("Thank you for helping test this Repl. This program has now ended.","green")