|
1 | 1 | #`02.1` Create a Script
|
2 | 2 |
|
3 |
| -Python is a scripting language, meaning that to run a Python code you don't need to compile, all you have to do is create a file with the`.py` extension and run it by using`python name_of_file.py`. |
| 3 | +Python is a scripting language, meaning that to run a Python code, you don't need to compile; all you have to do is create a file with the`.py` extension and run it by using`python name_of_file.py`. |
4 | 4 |
|
5 |
| -Let's create our firstpython script. |
| 5 | +Let's create our firstPython script. |
6 | 6 |
|
7 | 7 | ##📝 Instructions:
|
8 | 8 |
|
9 |
| -1. Create a new`app.py` file in the root of the project. (Make sure you arein the root). |
| 9 | +1. Create a new`app.py` file in the root of the project. (Make sure you areat the root). |
10 | 10 |
|
11 |
| -2. Add the code to print"hello world" on the terminal using the`print` function. |
| 11 | +2. Add the code to print`Hello World` on the terminal using the`print` function. |
12 | 12 |
|
13 | 13 | ```py
|
14 | 14 | print("Hello World")
|
15 | 15 | ```
|
16 | 16 |
|
17 | 17 | 3. Run your Python script by typing on the terminal`$ python app.py`.
|
18 | 18 |
|
19 |
| -##Expected Result: |
| 19 | +##💻Expected Result: |
20 | 20 |
|
21 |
| -After you run the command you should see something like this: |
| 21 | +After you run the command, you should see something like this: |
22 | 22 |
|
23 | 23 | 
|
24 | 24 |
|
25 |
| -##💡Hint: |
| 25 | +##💡Hints: |
26 | 26 |
|
27 | 27 | + Your`app.py` file must be next to the`.gitignore`,`learn.json` or`Pipfile` files.
|
28 |
| -You can also create the file using the terminal command:`$ touch app.py` and open it by double clicking on the file name or typing`$ code app.py`. |
| 28 | + |
| 29 | ++ You can also create the file using the terminal command:`$ touch app.py` and open it by double-clicking on the file name or typing`$ code app.py`. |