def gen(v=5):
    for i in range(v):
        yield i

print(list(gen()))
# Still not supported, ditto for *args and **kwargs
#print(list(gen(v=10)))

def gen(v=5):
    for i in range(v):
        yield i

print(list(gen()))
print(list(gen(v=10)))


def g(*args, **kwargs):
    for i in args:
        yield i
    for k, v in kwargs.items():
        yield (k, v)

print(list(g(1, 2, 3, foo="bar")))

Add testcases for "complicated" args to generator functions.
tests: Add testcases for "complicated" args to generator functions.

  def gen(v=5):
      for i in range(v):
          yield i
  
  print(list(gen()))
- # Still not supported, ditto for *args and **kwargs
- #print(list(gen(v=10)))
+ print(list(gen(v=10)))
  
+ 
+ def g(*args, **kwargs):
+     for i in args:
+         yield i
+     for k, v in kwargs.items():
+         yield (k, v)
+ 
+ print(list(g(1, 2, 3, foo="bar")))
+ 
Add testcases for "complicated" args to generator functions.
## Code Before:
def gen(v=5):
    for i in range(v):
        yield i

print(list(gen()))
# Still not supported, ditto for *args and **kwargs
#print(list(gen(v=10)))

## Instruction:
Add testcases for "complicated" args to generator functions.
## Code After:
def gen(v=5):
    for i in range(v):
        yield i

print(list(gen()))
print(list(gen(v=10)))


def g(*args, **kwargs):
    for i in args:
        yield i
    for k, v in kwargs.items():
        yield (k, v)

print(list(g(1, 2, 3, foo="bar")))
