Fun Python question

This commit is contained in:
Ian Gulliver
2019-04-15 03:59:09 +00:00
parent fdae596016
commit c1b1620e8b
4 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<!--# set var="title" value="Fun Python question" -->
<!--# set var="date" value="May 17, 2012" -->
<!--# include file="include/top.html" -->
<p>What does this do?</p>
<pre><code>def func():
print 'foo'
return
yield 'bar'
print func()
</code></pre>
<p>Take a guess, then give it a try.</p>
<!--# include file="include/bottom.html" -->