Skip to content

Commit 71c01fb

Browse files
authored
Merge pull request pyvec#24 from rootli/patch-20
English review
2 parents 706781a + 744810a commit 71c01fb

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

  • lessons/beginners-en/hello-world

lessons/beginners-en/hello-world/index.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77

88
You can issue commands in the *Python interactive console*.
99
But it has a disadvantage:
10-
the program that you type is lost when the session ends.
10+
The program that you type is lost when the session ends.
1111
It is good for trying simple commands.
12-
But you need to save more complex program somewhere.
12+
But you need a way to save more complex programs somewhere.
1313

1414
Open your editor
1515
(You should have an editor installed. If not, follow the instructions in
1616
[previous lesson]({{ lesson_url('beginners-en/install-editor')}}).)
1717

18-
Create a new file in your editor and type following code:
18+
Create a new file in your editor and type the following code:
1919

2020
```python
2121
print("Hello world!")
@@ -29,8 +29,8 @@ print("Hello world!")
2929

3030
Then save the file as `hello.py`.
3131
* You have to create the subdirectory named `02` in the `pyladies`
32-
(or whatever name of folder you've created last lecture) directory.
33-
* Then you can store the file as `hello.py` into it.
32+
(or whatever folder name you've created last lecture) directory.
33+
* Then you can store the file as `hello.py` in it.
3434

3535
If you can choose the *encoding* in your editor, you should use `UTF-8`.
3636
If you can choose the file type, use `.py` or `All Formats`.
@@ -39,41 +39,41 @@ Some operating systems or editors hide extensions or add their own extensions.
3939
You can check the real name using the command line.
4040
Open your command line and change your current directory using the `cd` command to
4141
~/pyladies/02.
42-
List what is in the directory using command `ls` (Mac or Linux) or `dir` (Windows)
42+
List what is in the directory using the command `ls` (Mac or Linux) or `dir` (Windows)
4343
and check that the filename is really `hello.py` and not, for example, `hello.py.txt`.
4444

4545

4646
## Executing Your Program
4747

4848
Open the command line and activate the virtual environment.
49-
Change to the `~/pyladies/02` directory and issue following command:
49+
Change to the `~/pyladies/02` directory and issue the following command:
5050

5151
```console
5252
$ python hello.py
5353
```
5454

5555
> [note]
56-
> You have learned the command line in
56+
> You have learned about the command line in
5757
> a [previous lesson](../../beginners-en/cmdline/) which shows how to change the current directory
5858
> using the `cd` command.
5959
> You know how to activate the virtual environment since the lesson about
6060
> [Python installation](../../beginners-en/install/).
6161
62-
Do you see the greeting? If you do you just wrote your first Python program!
62+
Do you see the greeting? If you do, you just wrote your first Python program!
6363

6464
If it does not work, make sure that:
6565

6666
* You have activated the virtual environment.
67-
(You should the `(venv)` in your command line prompt. If you do not see it,
67+
(You should see the `(venv)` in your command line prompt. If you do not see it,
6868
use the `activate` or `source activate` command that you have used in a [previous lession]({{ lesson_url('beginners-en/install') }}).)
6969
* You are in the correct directory: `~/pyladies/02`
7070
(you need to replace `~/pyladies` with the directory that you have created previously).
7171
* The `hello.py` file contains the correct command, including quotes and parentheses.
72-
* Do not type `$` or `>` characters in the command line – it is there for recognition that it is a command line.
73-
It is is printed by the operating system after any program had finished.
72+
* Do not type `$` or `>` character in the command line – it is there to indicate that this is a command line.
73+
It is printed by the operating system after any program has finished.
7474
You type only: `python hello.py`.
7575

76-
If it still does not work ask
76+
If it still does not work, ask
7777
{% if var('coach-present') -%}
7878
your coach.
7979
{%- else -%}
@@ -90,7 +90,7 @@ another developer. <!-- XXX: where to direct people? -->
9090
> print ( "Hello world!" )
9191
> ```
9292
>
93-
> It is a good practice to follow some typical guidelines.
93+
> It is however a good practice to follow some typical guidelines.
9494
> In English, we do not write a space after an opening parenthesis.
9595
> In Python, we do not write a space even between `print` and `(`.
9696
> The recommended style is:
@@ -99,5 +99,5 @@ another developer. <!-- XXX: where to direct people? -->
9999
> print("Hello world!")
100100
> ```
101101
>
102-
> The spaces between the quotes have their meaning: if you type
103-
> `" Hello world!"`, the extra spaces are printed.
102+
> The spaces between the quotes have a meaning: If you type
103+
> `" Hello world!"`, then the extra spaces are printed.

0 commit comments

Comments
 (0)