Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit08e722e

Browse files
authored
Update README.md
1 parent5dcd8a5 commit08e722e

File tree

1 file changed

+9
-8
lines changed
  • .learn/exercises/02.1-create-a-script

1 file changed

+9
-8
lines changed
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
#`02.1` Create a Script
22

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`.
44

5-
Let's create our firstpython script.
5+
Let's create our firstPython script.
66

77
##📝 Instructions:
88

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).
1010

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.
1212

1313
```py
1414
print("Hello World")
1515
```
1616

1717
3. Run your Python script by typing on the terminal`$ python app.py`.
1818

19-
##Expected Result:
19+
##💻Expected Result:
2020

21-
After you run the command you should see something like this:
21+
After you run the command, you should see something like this:
2222

2323
![print file](../../assets/hello.png)
2424

25-
##💡Hint:
25+
##💡Hints:
2626

2727
+ 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`.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp