diff options
Diffstat (limited to 'getting-started-with-for')
-rw-r--r-- | getting-started-with-for/quickref.tex | 6 | ||||
-rw-r--r-- | getting-started-with-for/script.rst | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/getting-started-with-for/quickref.tex b/getting-started-with-for/quickref.tex new file mode 100644 index 0000000..d106d6d --- /dev/null +++ b/getting-started-with-for/quickref.tex @@ -0,0 +1,6 @@ +For loop:\\ +{\ex \lstinline| for i in range(1,11,2):|} +{\ex \lstinline| s = s + i|} + +Range function:\\ +{\ex \lstinline| range([start,]stop[,step])|} diff --git a/getting-started-with-for/script.rst b/getting-started-with-for/script.rst index a8226fe..014e040 100644 --- a/getting-started-with-for/script.rst +++ b/getting-started-with-for/script.rst @@ -168,6 +168,8 @@ perfect squares and a list of those which are not. The numbers are, 7225, 3268, 3364, 2966, 7056, 5625, 729, 5547, 7056, 576, 2916 +Pause here and try to solve the problem before proceeding further. + {{{ switch to next slide, problem statement of second problem in solved exercise}}} |