Fun Python question
This commit is contained in:
17
markdown/2012-05-17-fun-python-question.md
Normal file
17
markdown/2012-05-17-fun-python-question.md
Normal file
@@ -0,0 +1,17 @@
|
||||
<!--# set var="title" value="Fun Python question" -->
|
||||
<!--# set var="date" value="May 17, 2012" -->
|
||||
|
||||
<!--# include file="include/top.html" -->
|
||||
|
||||
What does this do?
|
||||
|
||||
def func():
|
||||
print 'foo'
|
||||
return
|
||||
yield 'bar'
|
||||
|
||||
print func()
|
||||
|
||||
Take a guess, then give it a try.
|
||||
|
||||
<!--# include file="include/bottom.html" -->
|
||||
Reference in New Issue
Block a user