day2/day2quiz.tex
changeset 384 9f9fddf7e37c
parent 380 669b72283b55
equal deleted inserted replaced
383:26294a5b856b 384:9f9fddf7e37c
   164 In []: a[1] = 10
   164 In []: a[1] = 10
   165   \end{lstlisting}
   165   \end{lstlisting}
   166   What is the output?
   166   What is the output?
   167 \end{frame}
   167 \end{frame}
   168 
   168 
   169 \begin{frame}[fragile]
   169 %% \begin{frame}[fragile]
   170     \frametitle{\incqno}
   170 %%     \frametitle{\incqno}
   171   \begin{lstlisting}
   171 %%   \begin{lstlisting}
   172 def func(x, y=10):
   172 %% def func(x, y=10):
   173     print x+1, y+10
   173 %%     print x+1, y+10
   174 
   174 
   175 func(1)
   175 %% func(1)
   176 
   176 
   177   \end{lstlisting}
   177 %%   \end{lstlisting}
   178   What is the output?
   178 %%   What is the output?
   179 \end{frame}
   179 %% \end{frame}
   180 
   180 
   181 \begin{frame}
   181 %% \begin{frame}
   182     \frametitle{\incqno}
   182 %%     \frametitle{\incqno}
   183   How many items can a function return?
   183 %%   How many items can a function return?
   184 \end{frame}
   184 %% \end{frame}
   185 
   185 
   186 \end{document}
   186 \end{document}