Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions code.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import random
import time

things = ['coins','chocolate','gems']
process = ['learn','strive','commit']

print("Welcome to my fortune teller")

question = input("Would you like me to tell your fortune?\n")
Expand All @@ -9,7 +12,7 @@
print("I will now select your fortune based on your selection of ", colour)
time.sleep(2)

fortunes = ["You win all the things",
"Good things will happen if you learn to code"]
fortunes = ["You win all the "+random.choice(things),
"Good things will happen if you "+random.choice(process)+" to code"]

print(random.choice(fortunes))
print(random.choice(fortunes))