-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from raspberrypilearning/draft
Update files for translation
- Loading branch information
Showing
2 changed files
with
14 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,29 @@ | ||
Put code to run under here | ||
Put code to run under here. | ||
|
||
Hello | ||
|
||
Welcome to | ||
Welcome to {python} | ||
|
||
is very good at maths! | ||
{python} is good at maths! | ||
|
||
Print the result of the sum | ||
|
||
The date and time is | ||
|
||
Print the current date and time | ||
The date and time is {datetime.now()} | ||
|
||
Function definitions | ||
|
||
Don't forget the colon at the end of this line | ||
|
||
You rolled a | ||
|
||
randint(1, 6) is used to give a number between 1 and 6. | ||
|
||
Call the roll dice function | ||
|
||
Generate a random number between 1 and 6 and store it in the variable 'roll' | ||
|
||
Repeat the fire emoji to match the random dice roll | ||
|
||
How many sides?: | ||
|
||
Wait for input from the user | ||
|
||
That's a D | ||
You rolled a {4} | ||
|
||
Use the number the user entered | ||
How many sides on your dice?: | ||
|
||
Use max to determine the number of sides the dice has | ||
|
||
I ❤️ ... | ||
|
||
... makes me 😃 | ||
|
||
I'd like to make ... with | ||
That is a D {max} | ||
|
||
I can code | ||
|
||
First number: | ||
|
||
Second number: | ||
|
||
What do you like? | ||
|
||
That sounds | ||
|
||
You will need to create an emoji variable called 'fun' | ||
|
||
('You could make a', python, 'project about', hobby) | ||
I ❤️ ... | ||
|
||
Wait for the user to tap Enter | ||
... makes me 😃 | ||
|
||
Calls the hobbies function | ||
I would like to make ... with {python} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
world | ||
|
||
python | ||
add_one_and_one | ||
|
||
roll_dice | ||
|
||
roll | ||
|
||
fire | ||
|
||
max | ||
|
||
awesome | ||
|
||
two_dice | ||
|
||
hobbies | ||
fire | ||
|
||
hobby | ||
awesome | ||
|
||
fun | ||
two_dice |