Compare commits

...

6 Commits

Author SHA1 Message Date
Haaris
961049fc9e Merge 9617317345 into 559d03ecf3 2024-02-27 17:12:22 +08:00
Julien Le Coupanec
559d03ecf3 Merge pull request #372 from cunnellp5/cunnellp/vscode/add-command-and-cleanup-spaces
updates vscode cheat sheet
2024-02-26 18:25:32 +01:00
cunnellp5
bea751612a updates vscode cheat sheet with one command 2024-02-15 07:10:18 -07:00
Haaris
9617317345 added: Python Comments 2023-01-14 21:49:42 +05:30
Haaris
087d5d45a6 Update python.md 2023-01-14 21:48:23 +05:30
Haaris
96f9b643f4 added: Python Comments 2023-01-14 21:42:41 +05:30
2 changed files with 25 additions and 3 deletions

View File

@@ -125,6 +125,27 @@
| \|= | bitwise or and store| | \|= | bitwise or and store|
| , | separator as in ( y=x,z=++x )| | , | separator as in ( y=x,z=++x )|
<br>
## Comments
- Comments are very helpful to explain a Python code.
- They are used to make the code more readable.
- They never get executed.
- Comments start with # in Python.
```python
#This is a comment
print("Welcome!")
```
<br>
### Basic Data Structures ### Basic Data Structures
### List ### List

View File

@@ -6,7 +6,8 @@
#### General #### General
- `Ctrl`+`Shift`+`P`, `F1`: Show Command Palette - `Ctrl`+`Shift`+`P`, `F1`: Show Command Palette
- `Ctrl`+`Shift`+`T`: Open last closed tab
- `Ctrl`+`P`: Quick Open, Go to File - `Ctrl`+`P`: Quick Open, Go to File
- `Ctrl`+`Shift`+`N`: New window/instance - `Ctrl`+`Shift`+`N`: New window/instance
- `Ctrl`+`W`: Close window/instance - `Ctrl`+`W`: Close window/instance
@@ -19,7 +20,7 @@
- `Ctrl`+`C`: Copy line (empty selection) - `Ctrl`+`C`: Copy line (empty selection)
- `Ctrl`+`↓/↑`: Move line down / up - `Ctrl`+`↓/↑`: Move line down / up
- `Ctrl`+`Shift`+`K`: Delete line - `Ctrl`+`Shift`+`K`: Delete line
- `Ctrl`+`Enter` / `Ctrl`+`Shift`+`Enter`: Insert line below / above - `Ctrl`+`Enter` / `Ctrl`+`Shift`+`Enter`: Insert line below / above
- `Ctrl`+`Shift`+`\`: Jump to matching bracket - `Ctrl`+`Shift`+`\`: Jump to matching bracket
- `Ctrl`+`]` / `Ctrl`+`[`: Indent / Outdent line - `Ctrl`+`]` / `Ctrl`+`[`: Indent / Outdent line
- `Ctrl`+`Home` / `End`: Go to beginning / end of file - `Ctrl`+`Home` / `End`: Go to beginning / end of file
@@ -136,7 +137,7 @@
- [`Wrap Console Log`](https://marketplace.visualstudio.com/items?itemName=midnightsyntax.vscode-wrap-console-log): Wrap to console.log by word or selection. - [`Wrap Console Log`](https://marketplace.visualstudio.com/items?itemName=midnightsyntax.vscode-wrap-console-log): Wrap to console.log by word or selection.
- [`Bracket Pair Colorizer`](https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer): Allows matching brackets to be identified with colours. - [`Bracket Pair Colorizer`](https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer): Allows matching brackets to be identified with colours.
## My Settings ## My Settings