File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
lib/tasks/project_components Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 13
13
# Useful characters :',()*_/.#
14
14
15
15
# 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
20
20
print ('You rolled a' , roll , fire * roll ) # Repeat the fire emoji to match the dice roll
21
21
22
22
# Put code to run under here
23
23
print ('Hello' , world )
24
24
print ('Welcome to' , python )
25
25
print (python , 'is very good at maths!' )
26
26
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
28
28
29
29
roll_dice () # Call the roll dice function
30
30
print ('I โค๏ธ rainbows ๐' )
Original file line number Diff line number Diff line change 4
4
# Emoji variables to use in your project
5
5
world = '๐๐๐'
6
6
python = 'Python ๐'
7
+ fire = '๐ฅ'
7
8
8
9
# Emojis to copy and paste into your code
9
10
# ๐
๐๐จ๐ฎ๐ฌ๐๐ถ๏ธ๐ฒ๐ฆ๐๐ฏโญ๐
10
- # ๐๐โค๏ธ๐โฝ๐พ๐โป๏ธ๐ณ๐ฅ โจ๐ฅบ๐
11
+ # ๐๐โค๏ธ๐โฝ๐พ๐โป๏ธ๐ณโจ๐ฅบ๐
11
12
12
13
# Useful characters :',()*_/.#
13
14
You canโt perform that action at this time.
0 commit comments