day1/Session-1.vrb
author Shantanu <shantanu@fossee.in>
Wed, 07 Oct 2009 23:41:54 +0530
changeset 56 7a8cb7b07ebb
parent 46 63704b5650f1
permissions -rw-r--r--
Added testing examples in session-3.

\frametitle {Basic looping}
  \begin{lstlisting}
# Fibonacci series:
# the sum of two elements
# defines the next
a, b = 0, 1
while b < 10:
    print b,
    a, b = b, a + b

\end{lstlisting}
\typ{1 1 2 3 5 8}\\
\alert{Recall it is easy to write infinite loops with \kwrd{while}}
  \inctime{20}