forked from cedrict/fieldstone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp_python.tex
More file actions
23 lines (14 loc) · 782 Bytes
/
app_python.tex
File metadata and controls
23 lines (14 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Python is touted as the one language students should learn and master. However it is a language which allows *way* too much liberty in its syntax and encourages students to be sloppy.
For instance the following code runs just fine:
\begin{lstlisting}
for k in range(0,5):
for k in range(0,5):
for k in range(0,5):
print (k)
\end{lstlisting}
This alone should disqualify this language. It is easy to see the obvious problem with this code, but adding a few lines of code in between each 'for' line hides the problem and the absence of any warning makes this code a nightmare to debug.
\begin{verbatim}
https://www.w3schools.com/python/default.asp
https://www.codecademy.com/learn/learn-python
https://learnpythonthehardway.org/book/
\end{verbatim}