Skip to content

Commit f3e4550

Browse files
authored
Update thebeginning.rst
Just a couple of copyedits. Feel free to use or not.
1 parent edec314 commit f3e4550

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

docs/thebeginning.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Let's look at our first code, hello world. Because Python is an interpreted
88
language, you can write the code into the Python interpreter directly or you
99
can write the code in a file and then run the file. In this topic, we will
1010
first write the code using the interpreter, after starting Python in the
11-
command prompt (shell or terminal). In case you are new to Linux command line,
12-
+then you can read learn about various command from `this
13-
book <https://lym.readthedocs.io/en/latest/>`_
11+
command prompt (shell or terminal). If you are new to Linux command line,
12+
you can read about Linux commands in `this
13+
book <https://lym.readthedocs.io/en/latest/>`.
1414

1515

1616
Note that the code samples that follow use the latest Python built from the
@@ -36,20 +36,24 @@ In our first code we are going to print "Hello World!" using the interpreter. To
3636
Using a source file
3737
=====================
3838

39-
As a serious programmer, you might want to write the above code into a source file. Use any text editor you like to create the file called helloworld.py. I used vi. You can even use GUI based tools like Kate or gedit. Enter the following text:
39+
As a serious programmer, you might want to write the above code into a source file. Use any text editor you like to create the file called helloworld.py. I used vi. You can even use GUI based tools like `Kate <https://kate-editor.org/get-it/>` or `gedit <https://wiki.gnome.org/Apps/Gedit>`.
40+
41+
Open a shell or terinal and perform these steps.
42+
43+
1. Enter the following text:
4044

4145
::
4246

4347
#!/usr/bin/env python3
4448
print("Hello World!")
4549

46-
To run the code first you have to make the file executable. In GNU/Linux you can do this by typing the following command in a shell or terminal:
50+
2. Type the following command to make the file executable:
4751

4852
::
4953

5054
$ chmod +x helloworld.py
5155

52-
Now you can type the filename and it will run:
56+
3. Run the code by typing the filename.
5357

5458
::
5559

0 commit comments

Comments
 (0)