generators work again (deleted some necessary stuff)
This commit is contained in:
1 parent
547c952ba1
commit
da7ef3ba4b
4 files changed
+25
-16
No files matched your search
@@ -63,7 +63,7 @@ def recursion(a, b):
|
||||
else:
|
||||
return recursion(a+".", b+1)
|
||||
|
||||
##? int() float()
|
||||
#? int() float()
|
||||
recursion("a", 1.0)
|
||||
|
||||
# -----------------
|
||||
@@ -82,6 +82,16 @@ exe[0].index
|
||||
#? ['append']
|
||||
exe[1].append
|
||||
|
||||
# -----------------
|
||||
# default arguments
|
||||
# -----------------
|
||||
|
||||
##? int() str()
|
||||
func()
|
||||
|
||||
##? float() str()
|
||||
func(1.0)
|
||||
|
||||
# -----------------
|
||||
# closures
|
||||
# -----------------
|
||||
@@ -255,3 +265,6 @@ next(gen_exe).upper
|
||||
next(gen_exe).real
|
||||
#? int() str()
|
||||
next(gen_exe)
|
||||
|
||||
#? int() str() list
|
||||
next(gen_exe, list)
|
||||
Reference in new issue
Block a user