From 72965d5b84f16125b9bfd38459409741cc24777e Mon Sep 17 00:00:00 2001 From: Pete Bell <104009652+pjbRPF@users.noreply.github.com> Date: Tue, 27 Jun 2023 12:05:29 +0100 Subject: [PATCH 1/3] Include fire emoji in starter project (and remove from line 11) --- lib/tasks/project_components/hello_world_starter/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tasks/project_components/hello_world_starter/main.py b/lib/tasks/project_components/hello_world_starter/main.py index 3d85548fc..1dd7dfc26 100644 --- a/lib/tasks/project_components/hello_world_starter/main.py +++ b/lib/tasks/project_components/hello_world_starter/main.py @@ -4,10 +4,11 @@ # Emoji variables to use in your project world = '🌍🌎🌏' python = 'Python 🐍' +fire = '🔥' # Emojis to copy and paste into your code # 📅🕒🎨🎮🔬🎉🕶️🎲🦄🚀💯⭐💛 -# 😃😜❤️📚⚽🎾👟♻️🌳🔥✨🥺🌈 +# 😃😜❤️📚⚽🎾👟♻️🌳✨🥺🌈 # Useful characters :',()*_/.# From bc45dcf68ce32c1a94a5be59e934d82e569fc7d6 Mon Sep 17 00:00:00 2001 From: Pete Bell <104009652+pjbRPF@users.noreply.github.com> Date: Tue, 27 Jun 2023 14:12:02 +0100 Subject: [PATCH 2/3] Update main.py --- lib/tasks/project_components/hello_world_example/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/project_components/hello_world_example/main.py b/lib/tasks/project_components/hello_world_example/main.py index 23584a5b9..3d86e9f84 100644 --- a/lib/tasks/project_components/hello_world_example/main.py +++ b/lib/tasks/project_components/hello_world_example/main.py @@ -24,7 +24,7 @@ def roll_dice(): print('Welcome to', python) print(python, 'is very good at maths!') print(230 * 5782 ** 2 / 23781) # Print the result of the sum -print('The 📅 🕒 is', datetime.now()) # Print with emojis +print('The date and time is', datetime.now()) # Print the current date and time roll_dice() # Call the roll dice function print('I ❤️ rainbows 🌈') From 2c28192c621fc578ab940766a1abca808c21175e Mon Sep 17 00:00:00 2001 From: Pete Bell <104009652+pjbRPF@users.noreply.github.com> Date: Tue, 27 Jun 2023 15:10:10 +0100 Subject: [PATCH 3/3] Update main.py --- lib/tasks/project_components/hello_world_example/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tasks/project_components/hello_world_example/main.py b/lib/tasks/project_components/hello_world_example/main.py index 3d86e9f84..a99c15ef3 100644 --- a/lib/tasks/project_components/hello_world_example/main.py +++ b/lib/tasks/project_components/hello_world_example/main.py @@ -13,10 +13,10 @@ # Useful characters :',()*_/.# # Function definitions -def roll_dice(): - max = input('How many sides for a 🎲?: ') # Wait for input from the user - print('Rolling a', max, 'sided dice ...') # Use the number the user entered - roll = randint(1, int(max)) # Generate a random number between 1 and 6 +def roll_dice(): + max = input('How many sides?:') # Wait for input from the user + print('That\'s a D', max) # Use the number the user entered + roll = randint(1, int(max)) # Use max to determine the number of sides the dice has print('You rolled a', roll, fire * roll) # Repeat the fire emoji to match the dice roll # Put code to run under here