Skip to content

Commit aff1d2a

Browse files
authored
Changes for editor (#180)
1 parent b98a40c commit aff1d2a

File tree

2 files changed

+7
-6
lines changed
  • lib/tasks/project_components

2 files changed

+7
-6
lines changed

โ€Žlib/tasks/project_components/hello_world_example/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
# Useful characters :',()*_/.#
1414

1515
# Function definitions
16-
def roll_dice():
17-
max = input('How many sides for a ๐ŸŽฒ?: ') # Wait for input from the user
18-
print('Rolling a', max, 'sided dice ...') # Use the number the user entered
19-
roll = randint(1, int(max)) # Generate a random number between 1 and 6
16+
def roll_dice():
17+
max = input('How many sides?:') # Wait for input from the user
18+
print('That\'s a D', max) # Use the number the user entered
19+
roll = randint(1, int(max)) # Use max to determine the number of sides the dice has
2020
print('You rolled a', roll, fire * roll) # Repeat the fire emoji to match the dice roll
2121

2222
# Put code to run under here
2323
print('Hello', world)
2424
print('Welcome to', python)
2525
print(python, 'is very good at maths!')
2626
print(230 * 5782 ** 2 / 23781) # Print the result of the sum
27-
print('The ๐Ÿ“… ๐Ÿ•’ is', datetime.now()) # Print with emojis
27+
print('The date and time is', datetime.now()) # Print the current date and time
2828

2929
roll_dice() # Call the roll dice function
3030
print('I โค๏ธ rainbows ๐ŸŒˆ')

โ€Žlib/tasks/project_components/hello_world_starter/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
# Emoji variables to use in your project
55
world = '๐ŸŒ๐ŸŒŽ๐ŸŒ'
66
python = 'Python ๐Ÿ'
7+
fire = '๐Ÿ”ฅ'
78

89
# Emojis to copy and paste into your code
910
# ๐Ÿ“…๐Ÿ•’๐ŸŽจ๐ŸŽฎ๐Ÿ”ฌ๐ŸŽ‰๐Ÿ•ถ๏ธ๐ŸŽฒ๐Ÿฆ„๐Ÿš€๐Ÿ’ฏโญ๐Ÿ’›
10-
# ๐Ÿ˜ƒ๐Ÿ˜œโค๏ธ๐Ÿ“šโšฝ๐ŸŽพ๐Ÿ‘Ÿโ™ป๏ธ๐ŸŒณ๐Ÿ”ฅโœจ๐Ÿฅบ๐ŸŒˆ
11+
# ๐Ÿ˜ƒ๐Ÿ˜œโค๏ธ๐Ÿ“šโšฝ๐ŸŽพ๐Ÿ‘Ÿโ™ป๏ธ๐ŸŒณโœจ๐Ÿฅบ๐ŸŒˆ
1112

1213
# Useful characters :',()*_/.#
1314

0 commit comments

Comments
ย (0)