diff -r 3b8be02d94d4 -r 63704b5650f1 day1/Session-1.vrb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/day1/Session-1.vrb Wed Oct 07 00:43:37 2009 +0530 @@ -0,0 +1,14 @@ +\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}