22 Commits

Author SHA1 Message Date
Nick Korostelev
1fa8ae160f Python: add Set and modify Dict (#2163) 2024-09-24 23:23:27 +10:00
David Lakin
27970b1495 Add missing syntax highlighting to python.md (#2154)
Fixes missing code highlighting in half of the Python code snippets.

The top half of the page had code examples formatted as code blocks with
4 space character indentations and no syntax highlighting as a result.

The bottom half on the other hand, used code blocks surrounded by
"```py" formatting brackets which hints to many markdown renders that
syntax highlighting should be applied.

This unifies the code blocks in the top half of the page to use the same
formatting syntax used in the bottom half with syntax highlighting.

This change was prompted by requests to add the syntax highlighting in
comments on the https://devhints.io/python page.
2024-07-16 22:32:46 +10:00
Rico Sta. Cruz
511de900ba Formatting updates (#2133)
- Update some sheets which have very long sections
- Remove `layout: 2017/sheet` (everything has the same layout now)
- Remove outdated sheets
2024-04-03 18:30:24 +11:00
Rico Sta. Cruz
39a6c1a6ab Content formatting update (part 5) (#1969) 2023-03-14 15:40:29 +11:00
yeknomedoc
320c38959e Expanded the cheat-sheet (#1694)
Expanded the cheat-sheet with:
- *, ** as expansion arguments for lists and dicts./
- A Tuple section
- 'mutable' and 'immutable' notation behind the Tuple and Lists header.
2021-09-18 23:46:50 +10:00
Ryan M
28c5f62de1 fix spelling issue in Python (#1683)
Fixing a spelling issue in the Python section.
2021-09-18 23:45:51 +10:00
Rico Sta. Cruz
0114a74db2 Update python.md 2020-06-13 10:09:01 +10:00
Riadh Bch
574355b794 f string fix 2020-05-16 00:48:21 +02:00
Riadh Bch
efd0a4590a Correction of small typing errors
There was some minor mistakes  in the file manipulation section, so I just rectified them.
2020-05-16 00:29:05 +02:00
Nicholas Chen
e815651821 escape characters for string
referenced string documentation here: https://docs.python.org/3.9/tutorial/introduction.html
2020-01-10 19:14:13 -05:00
Rico Sta. Cruz
947d9c3135 Update formatting 2019-12-18 13:41:29 +11:00
Riadh Bch
d5623e46fb Update python.md
Adding file managing cheatsheet
2019-11-24 18:19:00 +01:00
Vlad Silverman
2175c6275c Updated python.md
Provided correct description for list elements replacement
2019-08-12 15:41:46 -07:00
chad d
b46a977600 Categorizing 2018-12-06 15:15:40 -07:00
ByMARLin
2b8e8ce90c Added .encode() to casting (#916)
.encode() turns string into byte-like object.
2018-11-16 13:07:42 -07:00
Michael Hienle
3dc8b2abc9 Some minor improvements to python cheatsheet (#623)
Added enumerate and pop with index and changed a few small things.
2018-11-07 13:31:46 -07:00
Michael Hienle
15a7a7e126 Minor improvements
Just made some things clearer by comments.
2018-07-20 16:40:38 +02:00
Antonio Fernando Santos Ladeia
c981c0e28b Add casts
Adding cast from int to str and from float to str
2017-10-23 10:52:12 -03:00
pprmint
12802de823 first try 2017-10-05 16:19:31 +08:00
pprmint
9bb0bb43e4 first try 2017-10-05 16:16:53 +08:00
Van Lim
48820119dc python: correct to import re 2017-10-02 22:01:54 +08:00
Rico Sta. Cruz
e5d364cc7e Update vimscript 2015-06-01 13:51:04 +08:00