getting-started-with-for/quickref.tex
author Puneeth Chaganti <punchagan@fossee.in>
Wed, 17 Nov 2010 23:24:57 +0530
changeset 521 88a01948450d
parent 398 36295bb91766
permissions -rw-r--r--
Merged heads.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
398
36295bb91766 Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff changeset
     1
For loop:\\
36295bb91766 Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff changeset
     2
{\ex \lstinline|    for i in range(1,11,2):|}
36295bb91766 Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff changeset
     3
{\ex \lstinline|        s = s + i|}
36295bb91766 Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff changeset
     4
36295bb91766 Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff changeset
     5
Range function:\\
36295bb91766 Added quickrefs for dictionaries, getting started with arrays, for, matrices, other plots, savefig, using python modules.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff changeset
     6
{\ex \lstinline|    range([start,]stop[,step])|}