From 5e898f05f4b28694821665c1be45d306d5af4d5a Mon Sep 17 00:00:00 2001 From: Ian Simpson Date: Wed, 9 Oct 2019 15:17:48 +0100 Subject: [PATCH] Update code.py --- code.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code.py b/code.py index e218b47..0bdd84f 100644 --- a/code.py +++ b/code.py @@ -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") @@ -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)) \ No newline at end of file +print(random.choice(fortunes))