You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Language/Python/Python.md
+40-32Lines changed: 40 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,54 +49,62 @@ There are two major versions of Python currently in use:
49
49
50
50
There are several steps you can take to begin learning and using the language. Here's a step-by-step guide:
51
51
52
-
1.### Download Python
52
+
<br>
53
53
54
-
Visit the [Official Python Website](https://www.python.org/downloads/) and download the latest version of Python.
54
+
1.**Download Python**
55
+
56
+
Visit the [Official Python Website](https://www.python.org/downloads/) and download the latest version of Python.
55
57
56
-
2.### Installation
58
+
2.**Installation**
59
+
60
+
Follow the installation instructions for your operating system. Make sure to check the box that says `"Add Python to PATH"` during installation for easier command-line access.
57
61
58
-
Follow the installation instructions for your operating system. Make sure to check the box that says `"Add Python to PATH"` during installation for easier command-line access.
62
+
3.**Choose an Integrated Development Environment (IDE)**
63
+
64
+
You'll then need to select an IDE or a text editor to write your Python code.
59
65
60
-
3.### Choose an Integrated Development Environment (IDE)
66
+
Some popular options include:
67
+
- Visual Studio Code: A lightweight and extensible code editor with Python support.
68
+
- Sublime Text:
69
+
- Atom:
70
+
- PyCharm: A more feature rich IDE specifically for Python.
61
71
62
-
You'll then need to select an IDE or a text editor to write your Python code. Some popular options include:
72
+
4.**Write Python Code**
73
+
74
+
Simply create a new Python source file (typically with a `.py ` extension) using your chosen IDE or text editor, and write your C++ code using the C++ syntax and features!
63
75
64
-
- Visual Studio Code: A lightweight and extensible code editor with Python support.
65
-
- Sublime Text:
66
-
- Atom:
67
-
- PyCharm: A more feature rich IDE specifically for Python.
76
+
Here's a simple "Hello, World!" program:
68
77
69
-
3.### Write Python Code
78
+
```python
79
+
print("Hello, World!")
80
+
```
70
81
71
-
Simply create a new Python source file (typically with a .py extension) using your chosen IDE or text editor, and write your C++ code using the C++ syntax and features!
82
+
Yeah... it's that easy!
72
83
73
-
Here's a simple "Hello, World!" program:
84
+
5. **Save**
85
+
86
+
Save your Python code with a meaningful filename and the `.py ` extension.
74
87
75
-
```python
76
-
print("Hello, World!")
77
-
```
88
+
6. **Run the Code**
89
+
90
+
Use the command-line interface or the terminal to run your python code. Run the program by navigating to the folder with your fileand typing:
78
91
79
-
Yeah... it's that easy!
92
+
```bash
93
+
python hello_world.py
94
+
```
80
95
81
-
4.### Save
96
+
OR (on some systems)
82
97
83
-
Save your Python code with a meaningful filename and the .py extension.
98
+
```bash
99
+
python3 hello_world.py
100
+
```
84
101
85
-
5.### Run the Code
102
+
<br>
86
103
87
-
Use the command-line interface or the terminal to run your python code. Run the program by navigating to the folder with your file and typing:
104
+
{: .note title="Notice"}
105
+
That there is no requirement to compile it like for other languages (such as`C++`). Because `Python`'s code is executed directly by an interpreter without the need for a separate compilation step.
88
106
89
-
```bash
90
-
python hello_world.py
91
-
```
92
-
93
-
OR (on some systems)
94
-
95
-
```bash
96
-
python3 hello_world.py
97
-
```
98
-
99
-
Notice how you do not need to compile it like in some other languages (such as C++). This is because Python code is executed directly by an interpreter without the need for a separate compilation step.
0 commit comments