Skip to content

Commit

Permalink
Merge pull request #81 from raspberrypilearning/draft
Browse files Browse the repository at this point in the history
Update files for translation
  • Loading branch information
sashamishcheriakova authored Feb 21, 2025
2 parents 14da7b3 + 27ec5c9 commit 37a5407
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 52 deletions.
52 changes: 10 additions & 42 deletions en/python-comments.txt
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}
14 changes: 4 additions & 10 deletions en/python-translatable.txt
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

0 comments on commit 37a5407

Please sign in to comment.