summaryrefslogtreecommitdiff
path: root/getting-started-with-for
diff options
context:
space:
mode:
authorAmit Sethi2010-11-08 01:56:03 +0530
committerAmit Sethi2010-11-08 01:56:03 +0530
commitbf83e16caf164cdbcb3ddd72f44833109b989b97 (patch)
treed2d14c96af50041aa9cc29d8c3595aa8bcb16d3e /getting-started-with-for
parente09d107f6a3c7ddd290e4390158f682c1ca2b0b4 (diff)
parent1535316de3744cb31b7f1eaa5006f30a15d0f31c (diff)
downloadst-scripts-bf83e16caf164cdbcb3ddd72f44833109b989b97.tar.gz
st-scripts-bf83e16caf164cdbcb3ddd72f44833109b989b97.tar.bz2
st-scripts-bf83e16caf164cdbcb3ddd72f44833109b989b97.zip
Merging changes
Diffstat (limited to 'getting-started-with-for')
-rw-r--r--getting-started-with-for/quickref.tex6
-rw-r--r--getting-started-with-for/script.rst2
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}}}