@@ -206,6 +206,25 @@ \section{Intro to the Class}
206206\end {frame }
207207
208208
209+ \begin {frame }{Mailing list and Office Hours}
210+
211+ \vfill
212+ {\Large We've set up a google group\\
213+ -- you will all be invited to join.}
214+
215+ \url {programming-in-python@googlegroups.com}
216+
217+ \vfill
218+ {\Large `` Office Hours'' \\
219+ -- Useful? Will you come?}
220+
221+ \vfill
222+
223+ \end {frame }
224+
225+
226+
227+
209228\begin {frame }{Python Ecosystem}
210229
211230{\Large Used for:}
@@ -843,17 +862,38 @@ \section{Values, Expressions, and Types}
843862
844863\section {Functions }
845864
865+ \begin {frame }[fragile]{Functions}
866+
867+ \vfill
868+ {\Large What is a function?}
869+
870+ \vfill
871+ {\large A function is a self-contained chunk of code}
872+
873+ \vfill
874+ {\large You use them when you need the same code to run multiple times,
875+ or in multiple parts of the program.}
876+
877+ \hspace {1in}{\Large (DRY) }
878+
879+ \vfill
880+ {\large Or just to keep the code clean}
881+
882+ \vfill
883+ {\large Functions can take and return information}
884+
885+ \end {frame }
886+
846887
847888\begin {frame }[fragile]{Functions}
848889
849- {\Large Minimal Function}
890+ {\Large Minimal Function does nothing }
850891
851892\begin {verbatim }
852893def <name>():
853894 <statement>
854895\end {verbatim }
855896
856- \pause
857897\vspace {0.25in}
858898{\Large Pass Statement (Note the indentation!)}
859899\begin {verbatim }
@@ -995,24 +1035,23 @@ \section{Functions}
9951035
9961036\end {frame }
9971037
998- \begin {frame }[fragile]{Functions: return}
999-
1000- {\Large Actually a tuple of results...}
1038+ % \begin{frame}[fragile]{Functions: return}
10011039
1002- \begin {verbatim }
1003- In [154]: t = fun()
1040+ % {\Large Actually a tuple of results...}
10041041
1005- In [155]: t
1006- Out[155 ]: (1, 2, 3 )
1042+ % \begin{verbatim}
1043+ % In [154 ]: t = fun( )
10071044
1008- In [156]: type(t)
1009- Out[156]: tuple
1010- \end {verbatim }
1045+ % In [155]: t
1046+ % Out[155]: (1, 2, 3)
10111047
1012- {\Large Multiple assignment is really "tuple unpacking" }
1048+ % In [156]: type(t)
1049+ % Out[156]: tuple
1050+ % \end{verbatim}
10131051
1014- \end { frame }
1052+ % {\Large Multiple assignment is really "tuple unpacking" }
10151053
1054+ % \end{frame}
10161055
10171056
10181057\begin {frame }[fragile]{Functions: parameters}
0 commit comments