<detailsopen><summary><strong>What is the best way to use it?</strong></summary><br>
I keep the text file open on separate desktop at all times. It is also in a different text editor than the one I usually use, so it's easier to switch to with <code>Ctrl+↹</code> / <code>⌘↹</code>. Cheatsheet consists of minimal text and short examples so things are easy to find with <code>Ctrl+F</code> / <code>⌘F</code>.<br><br>
I also keep the Python console open at all times to test a little snippets of code, to check out the available functions of a module using code completion and above all, to use <code>help(<module/object/function/type>)</code> command. If something is still unclear, then I search the Python docs by googling <code>'python docs <module/function>'</code>.
I also keep the Python console open at all times to test little snippets of code, to check out the available functions of a module using code completion and above all, to use <code>help(<module/object/function/type>)</code> command. If something is still unclear, then I search the Python docs by googling <code>'python docs <module/function>'</code>.
</details><br>
<detailsopen><summary><strong>What does the '<type>' signify?</strong></summary><br>
@ -15,8 +15,8 @@
It makes examples much less ambiguous.
</details><br>
<detailsopen><summary><strong>Why are some basics like <code>'<list> = [1, 2, 3]'</code> and <code>'<el> = <list>[<int>]'</code> missing?</strong></summary><br>
This cheatsheet is not intended for complete beginners. This way it can save some valuable space. Nonetheless it tries to be simple enough to be useful for somebody who completed the introductory course. A nice onepage cheatsheet that can help you get started can be found <ahref="https://github.com/kickstartcoding/cheatsheets/blob/master/build/topical/python.pdf">here</a>.</details><br>
<detailsopen><summary><strong>Why are some basics like <code>'<list> = [<el_1>, <el_2>, ...]'</code> and <code>'<el> = <list>[<int>]'</code> missing?</strong></summary><br>
This cheatsheet is not intended for complete beginners. This way it can save some valuable space. Nonetheless, it tries to be simple enough to be useful for somebody who completed the introductory course. A nice one-page cheatsheet that can help you get started can be found <ahref="https://github.com/kickstartcoding/cheatsheets/blob/master/build/topical/python.pdf">here</a>.</details><br>
<detailsopen><summary><strong>What exactly is <code><el></code>?</strong></summary><br>
El is short for element and can be any object, but it usually denotes an object that is an item of a collection.
@ -32,12 +32,12 @@
Check out <ahref="https://google.github.io/styleguide/pyguide.html">Google Style Guide</a> and use <code>Ctrl+Alt+L</code> / <code>⌥⌘L</code> shortcut in PyCharm to automatically reformat code.
</details><br>
<detailsopen><summary><strong>Why are import statement, virtual environment, tests, packaging and installation not covered?</strong></summary><br>
Check out <ahref="https://docs.python-guide.org/">The Hitchhiker’s Guide to Python</a> for a nice overview of mentioned topics.
<detailsopen><summary><strong>Why are import statements, virtual environment, tests, packaging and installation not covered?</strong></summary><br>
Check out <ahref="https://docs.python-guide.org/">The Hitchhiker’s Guide to Python</a> for a nice overview of the mentioned topics.
</details><br>
<detailsopen><summary><strong>Why is Django not covered?</strong></summary><br>
Maybe it will be in the future. For now here is a nice <ahref="https://github.com/kickstartcoding/cheatsheets/blob/master/build/topical/django.jpg">Django cheatsheet</a>.
Maybe it will be in the future. For now, here is a nice <ahref="https://github.com/kickstartcoding/cheatsheets/blob/master/build/topical/django.jpg">Django cheatsheet</a>.
</details><br>
<detailsopen><summary><strong>Why are there no concrete Regex examples?</strong></summary><br>
@ -45,13 +45,13 @@
</details><br>
<detailsopen><summary><strong>Why is there no old style string formating?</strong></summary><br>
Because it's redundant and I don't want to encourage its use.
Because it is redundant and I don't want to encourage its use.
</details><br>
<detailsopen><summary><strong>Why is staticmethod not covered in Class section?</strong></summary><br>
<detailsopen><summary><strong>Why is staticmethod decorator not covered in Class section?</strong></summary><br>
Because it's of very limited use and is easy to mix up with classmethod.
</details><br>
<detailsopen><summary><strong>Why are descriptors not covered?</strong></summary><br>
Because property is sufficient for everyday use.
Because property decorator is sufficient for everyday use.