Skip to content

Commit

Permalink
Revise part 09 of the programmers' "workflow" tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomurri committed Jan 26, 2017
1 parent 6c021fb commit a4779a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Binary file modified docs/programmers/tutorials/workflows/part09.pdf
Binary file not shown.
15 changes: 8 additions & 7 deletions docs/programmers/tutorials/workflows/part09.tex
Expand Up @@ -18,7 +18,7 @@
\\[1ex]
University of Zurich
}
\date{November~14--17, 2016}
\date{January~23--27, 2017}


\begin{document}
Expand Down Expand Up @@ -109,12 +109,13 @@
\href{https://docs.python.org/2/library/random.html#random.randint}{\texttt{randint}}
function:
\begin{python}
from random import randint

r = randint(0, 255)
g = randint(0, 255)
b = randint(0, 255)
color = ("xc:#%02x%02x%02x" % (r, g, b))
def random_color():
from random import randint
r = randint(0, 255)
g = randint(0, 255)
b = randint(0, 255)
color = ("xc:#%02x%02x%02x" % (r, g, b))
return color
\end{python}
\end{frame}

Expand Down

0 comments on commit a4779a8

Please sign in to comment.