author | anand |
Thu, 11 Nov 2010 00:03:57 +0530 | |
changeset 472 | fcdec2d28c9a |
parent 306 | f105cfcc2498 |
permissions | -rw-r--r-- |
306
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
1 |
#+LaTeX_CLASS: beamer |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
2 |
#+LaTeX_CLASS_OPTIONS: [presentation] |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
3 |
#+BEAMER_FRAME_LEVEL: 1 |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
4 |
|
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
5 |
#+BEAMER_HEADER_EXTRA: \usetheme{Warsaw}\usecolortheme{default}\useoutertheme{infolines}\setbeamercovered{transparent} |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
6 |
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra) |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
7 |
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 :ETC |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
8 |
|
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
9 |
#+LaTeX_CLASS: beamer |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
10 |
#+LaTeX_CLASS_OPTIONS: [presentation] |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
11 |
|
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
12 |
#+LaTeX_HEADER: \usepackage[english]{babel} \usepackage{ae,aecompl} |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
13 |
#+LaTeX_HEADER: \usepackage{mathpazo,courier,euler} \usepackage[scaled=.95]{helvet} |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
14 |
|
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
15 |
#+LaTeX_HEADER: \usepackage{listings} |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
16 |
|
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
17 |
#+LaTeX_HEADER:\lstset{language=Python, basicstyle=\ttfamily\bfseries, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
18 |
#+LaTeX_HEADER: commentstyle=\color{red}\itshape, stringstyle=\color{darkgreen}, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
19 |
#+LaTeX_HEADER: showstringspaces=false, keywordstyle=\color{blue}\bfseries} |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
20 |
|
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
21 |
#+TITLE: Getting started with for |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
22 |
#+AUTHOR: FOSSEE |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
23 |
#+EMAIL: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
24 |
#+DATE: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
25 |
|
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
26 |
#+DESCRIPTION: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
27 |
#+KEYWORDS: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
28 |
#+LANGUAGE: en |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
29 |
#+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
30 |
#+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:nil pri:nil tags:not-in-toc |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
31 |
|
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
32 |
* Outline |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
33 |
- ~for~ loop in Python. |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
34 |
- Blocks of code in Python. |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
35 |
- Indentation |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
36 |
* Whitespace in Python |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
37 |
- Whitespace is significant |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
38 |
- blocks are visually separated |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
39 |
- Blocks are indented using 4 spaces |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
40 |
: Block A |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
41 |
: Block A |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
42 |
: Block B |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
43 |
: Block B |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
44 |
: Block A |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
45 |
~Block B~ is an inner block and is indented using 4 spaces |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
46 |
* Exercise 1 |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
47 |
Write a ~for~ loop which iterates through a list of numbers and find |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
48 |
the square root of each number. |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
49 |
: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
50 |
The numbers are, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
51 |
: 1369, 7225, 3364, 7056, 5625, 729, 7056, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
52 |
: 576, 2916 |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
53 |
* Solution 1 |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
54 |
- Open text editor and type the following code |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
55 |
#+begin_src python |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
56 |
numbers = [1369, 7225, 3364, 7056, 5625, 729, 7056, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
57 |
576, 2916] |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
58 |
|
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
59 |
for each in numbers: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
60 |
print "Square root of", each, "is", sqrt(each) |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
61 |
|
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
62 |
print "This is not in for loop!" |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
63 |
#+end_src |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
64 |
* Save \& run script |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
65 |
- Save the script as ~list_roots.py~ |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
66 |
- Run in ~ipython~ interpreter as, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
67 |
: In []: %run -i list_roots.py |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
68 |
* Exercise 2 |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
69 |
From the given numbers make a list of perfect squares and a list of those which are not. |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
70 |
: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
71 |
The numbers are, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
72 |
: 7225, 3268, 3364, 2966, 7056, 5625, 729, 5547, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
73 |
: 7056, 576, 2916 |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
74 |
* Exercise 3 (indentation in ~ipython~) |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
75 |
Print the square root of numbers in the list. |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
76 |
: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
77 |
Numbers are, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
78 |
: 7225, 3268, 3364, 2966, 7056, 5625, 729, 5547, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
79 |
: 7056, 576, 2916 |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
80 |
* Indentation in ~ipython~ |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
81 |
: In []: numbers = [1369, 7225, 3364, 7056, 5625, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
82 |
: ...: 729, 7056, 576, 2916] |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
83 |
|
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
84 |
: In []: for each in numbers: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
85 |
: ...: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
86 |
Note the four spaces here |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
87 |
: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
88 |
: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
89 |
: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
90 |
: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
91 |
: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
92 |
: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
93 |
* Indentation in ~ipython~ (cont'd) |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
94 |
: In []: numbers = [1369, 7225, 3364, 7056, 5625, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
95 |
: ...: 729, 7056, 576, 2916] |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
96 |
: In []: for each in numbers: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
97 |
: ...: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
98 |
Note the four spaces here |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
99 |
: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
100 |
Now type the rest of the code |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
101 |
: ...: print "Square root of", each, |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
102 |
: ...: print "is", sqrt(each) |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
103 |
: ...: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
104 |
: ...: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
105 |
* Indentation in ~python~ interpreter |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
106 |
Find out the cube of all the numbers from 1 to 10. |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
107 |
: |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
108 |
/do it in the python interpreter/ |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
109 |
* Indentation in ~python~ interpreter (cont'd) |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
110 |
#+begin_src python |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
111 |
>>> for i in range(1, 11): |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
112 |
... print i, "cube is", i**3 |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
113 |
... |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
114 |
#+end_src |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
115 |
* ~range()~ function |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
116 |
- in built function in Python |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
117 |
- generates a list of integers |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
118 |
- /syntax:/ range([start,] stop[, step]) |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
119 |
- /example:/ |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
120 |
- range(1, 20) - /generates integers from 1 to 20/ |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
121 |
- range(20) - /generates integers from 0 to 20/ |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
122 |
* Exercise 4 |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
123 |
Print all the odd numbers from 1 to 50. |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
124 |
* Summary |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
125 |
- blocks in ~python~ |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
126 |
- indentation |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
127 |
- blocks in ~ipython~ interpreter |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
128 |
- ~for~ loop |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
129 |
- iterating over list using ~for~ loop |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
130 |
- ~range()~ function |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
131 |
* Thank you! |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
132 |
#+begin_latex |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
133 |
\begin{block}{} |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
134 |
\begin{center} |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
135 |
This spoken tutorial has been produced by the |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
136 |
\textcolor{blue}{FOSSEE} team, which is funded by the |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
137 |
\end{center} |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
138 |
\begin{center} |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
139 |
\textcolor{blue}{National Mission on Education through \\ |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
140 |
Information \& Communication Technology \\ |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
141 |
MHRD, Govt. of India}. |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
142 |
\end{center} |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
143 |
\end{block} |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
144 |
#+end_latex |
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
145 |
|
f105cfcc2498
added slides for getting-started-with-for.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
146 |