Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 5 additions & 6 deletions lib/tasks/project_components/hello_world_example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@

# Function definitions
def roll_dice():
max = input('How many sides?: ') # Wait for input from the user
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
print('You rolled a', roll) # Print the value of the roll variable
print('🔥' * roll) # Repeat the fire emoji to match the dice roll
print(roll, '🔥' * roll) # Repeat the fire emoji to match the dice roll

# Put code to run under here
print('Hello', world)
Expand All @@ -27,6 +26,6 @@ def roll_dice():
print('The 📅 🕒 is', datetime.now()) # Print with emojis

roll_dice() # Call the roll dice function
print('I ❤️ ...')
print('... makes me 😃')
print('I\'d like to make ... with', python)
print('I ❤️ rainbows 🌈')
print('Unicorns 🦄 make me 😃')
print('I\'d like to make a story 📖 with', python)
14 changes: 14 additions & 0 deletions lib/tasks/project_components/hello_world_starter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,17 @@

# Put code to run under here