intermediate python lesson 3: Exercise: Functional Fuzzing
In this exercise, you'll write a function called generate_cases that represents an infinite stream of random lists of increasing size.
g = generate_cases()
next(g) # => []
next(g) # => [5]
next(g) # => [3, 1]
next(g) # => [1, 7, 4]
next(g) # => ...
philipdevblog.hashnode.dev1 min read