Compare commits

...

6 Commits

Author SHA1 Message Date
Haaris
fe2bc247c9 Merge 9617317345 into d143c60246 2023-12-29 06:50:36 -08:00
Julien Le Coupanec
d143c60246 Merge pull request #354 from RomjanHossain/patch-1
swap current line with previous
2023-12-29 15:35:14 +01:00
Romjan D. Hossain
44371217a9 swap current line with previous
it should be `ddkP` instead of `ddkp`
2023-12-24 11:53:04 +06: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 22 additions and 1 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

@@ -105,7 +105,7 @@ gu$ make lowercase until end of line
<< indent line one column to left << indent line one column to left
== auto-indent current line == auto-indent current line
ddp swap current line with next ddp swap current line with next
ddkp swap current line with previous ddkP swap current line with previous
:%retab fix spaces / tabs issues in whole file :%retab fix spaces / tabs issues in whole file
:r [name] insert the file [name] below the cursor. :r [name] insert the file [name] below the cursor.
:r !{cmd} execute {cmd} and insert its standard output below the cursor. :r !{cmd} execute {cmd} and insert its standard output below the cursor.