Skip to content

Commit 3d72ebe

Browse files
committed
random gyan/ideas
1 parent 09eb0d2 commit 3d72ebe

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

docs/thebeginning.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,17 @@ In Python whitespace is an important thing. We divide different identifiers usin
7373
^
7474
IndentationError: unexpected indent
7575

76-
.. warning:: Warning
76+
.. warning::
7777
There is an extra space in the beginning of the second line which is causing the error, so always look for the proper indentation.
7878
You can even get into this indentation errors if you mix up tabs and spaces. Like if you use spaces and only use spaces for indentation, don't use tabs in that case. For you it may look same, but the code will give you error if you try to run it.
7979

80-
So we can have few basic rules ready for spaces and indentation.
80+
This also introduce us to the first error. It is okay to see more errors while
81+
you are learning to code or learning Python for the first time. Start reading
82+
the errors from the end, and slowly go up (if there are many lines). We will
83+
learn more in the exceptions chapter of this book.
84+
85+
86+
We can have few basic rules ready for spaces and indentation.
8187

8288
- Use 4 spaces for indentation.
8389

@@ -95,6 +101,9 @@ There are more places where you should be following the same type of whitespace
95101

96102
- No spaces just inside parentheses.
97103

104+
105+
.. note:: 99% of my programming errors I saw are due to typing mistakes. People can learn logic well, but you should be able to type well too. Learn touch typing, that one single skill will help you to become much better programmer than many other skills.
106+
98107
Comments
99108
========
100109

0 commit comments

Comments
 (0)