repl.it
@BenjaminSMITH69/

fred the magic, all-seeing, god goat

Python

No description

fork
loading
Files
  • main.py
  • futures.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
import random
future_outcomes = []

print("Fred is a magic, all-seeing god goat")
choice = input("Do you want him to read your future? ").lower()
if choice == "no":
  print("That is rude")
  print("Fred is very upset now")

elif choice == "yes" or choice == "yeah" or choice == "ok":
  with open("futures.txt", "r") as f:
    for line in f.readlines():
      futureOutcomes = line.strip()
      future_outcomes.append(futureOutcomes)
      rand = random.randint(0, len(future_outcomes) - 1)
    print()
    print(future_outcomes[rand])
    print()
    print("That will be all you see of Fred the magic, all-seeing god goat")
    print("Fred wishes you a very happy life (or what you have left of it, he says)")
else:
  print("Unfortunatly, your answer is not afflicable")      
?