Skip to content

Commit

Permalink
Ilt beta (#113)
Browse files Browse the repository at this point in the history
Minor updates including adding blank lines at the end of the Hello World
starter to see if that helps with adding lines at the end of a file when
the previous line is long or the Run button is in the way.
  • Loading branch information
IzzySmillie authored Jan 31, 2023
2 parents 1b4fed6 + 0698ef4 commit a78ab8b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
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















0 comments on commit a78ab8b

Please sign in to comment.