File tree Expand file tree Collapse file tree
lib/tasks/project_components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
2323print ('Hello' , world )
2424print ('Welcome to' , python )
2525print (python , 'is very good at maths!' )
2626print (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
2929roll_dice () # Call the roll dice function
3030print ('I โค๏ธ rainbows ๐' )
Original file line number Diff line number Diff line change 44# Emoji variables to use in your project
55world = '๐๐๐'
66python = 'Python ๐'
7+ fire = '๐ฅ'
78
89# Emojis to copy and paste into your code
910# ๐
๐๐จ๐ฎ๐ฌ๐๐ถ๏ธ๐ฒ๐ฆ๐๐ฏโญ๐
10- # ๐๐โค๏ธ๐โฝ๐พ๐โป๏ธ๐ณ๐ฅ โจ๐ฅบ๐
11+ # ๐๐โค๏ธ๐โฝ๐พ๐โป๏ธ๐ณโจ๐ฅบ๐
1112
1213# Useful characters :',()*_/.#
1314
You canโt perform that action at this time.
0 commit comments