diff options
author | Prabhu Ramachandran | 2011-09-04 00:23:19 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-09-04 00:23:19 +0530 |
commit | 483021b097addf9aad7cce7fb53a3bbc9f55ffec (patch) | |
tree | 8c9fe54d18754f749b2c5d1d18c5b933fbc4ef2e | |
parent | 89d524e17236d8689d4d241a4cf123db74f3f86a (diff) | |
download | sees-483021b097addf9aad7cce7fb53a3bbc9f55ffec.tar.gz sees-483021b097addf9aad7cce7fb53a3bbc9f55ffec.tar.bz2 sees-483021b097addf9aad7cce7fb53a3bbc9f55ffec.zip |
BUG: Fixing a few bugs and minor formatting in the slides.
-rw-r--r-- | basic_python/slides/func.tex | 2 | ||||
-rw-r--r-- | basic_python/slides/strings_loops_lists.tex | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/basic_python/slides/func.tex b/basic_python/slides/func.tex index eefd0d5..f0ed1a5 100644 --- a/basic_python/slides/func.tex +++ b/basic_python/slides/func.tex @@ -256,7 +256,7 @@ def change_name(n): n[0] = 'Dr.' print "n = %s inside change_name" %n - change_name(n) + change_name(name) print name \end{lstlisting} \end{frame} diff --git a/basic_python/slides/strings_loops_lists.tex b/basic_python/slides/strings_loops_lists.tex index 244fd95..3d6d8e8 100644 --- a/basic_python/slides/strings_loops_lists.tex +++ b/basic_python/slides/strings_loops_lists.tex @@ -217,7 +217,8 @@ score = 0 \end{lstlisting} \begin{lstlisting} - score = int(score_str) if score_str != 'AA' else 0 + ss = score_str + score = int(ss) if ss != 'AA' else 0 \end{lstlisting} \end{frame} @@ -292,7 +293,7 @@ while True: print i*i i += 2 - if i<10: + if i>10: break \end{lstlisting} \end{frame} |