getting-started-with-for/quickref.tex
author bhanu
Mon, 15 Nov 2010 15:20:54 +0530
changeset 509 0775f177947a
parent 398 36295bb91766
permissions -rw-r--r--
Language check done for `writing python scripts`
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])|}