diff --git a/lib/tasks/project_components/hello_world_example/main.py b/lib/tasks/project_components/hello_world_example/main.py index 23584a5b9..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 @@ -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 🌈') 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 :',()*_/.#