We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Debugging
- Default Arguments
- Discussions
Default Arguments
Default Arguments
Sort by
recency
|
176 Discussions
|
Please Login in order to post a comment
def print_from_stream(n, stream=EvenStream()): stream.init() for _ in range(n): print(stream.get_next())
You won't get the locked code if you are using PYP3 compiler. Change it to Python3 and 'all good'.
Question is broken.
EvenStream
is not defined.