Skip to content

Commit c74f8f2

Browse files
authored
Merge pull request #139 from smarvin/patch-1
Update thebeginning.rst
2 parents e454a6d + f3e4550 commit c74f8f2

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
The following is from Fedora 32 machine.
@@ -37,20 +37,24 @@ In our first code we are going to print "Hello World!" using the interpreter. To
3737
Using a source file
3838
=====================
3939

40-
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:
40+
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>`.
41+
42+
Open a shell or terinal and perform these steps.
43+
44+
1. Enter the following text:
4145

4246
::
4347

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

47-
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:
51+
2. Type the following command to make the file executable:
4852

4953
::
5054

5155
$ chmod +x helloworld.py
5256

53-
Now you can type the filename and it will run:
57+
3. Run the code by typing the filename.
5458

5559
::
5660

0 commit comments

Comments
 (0)