Default Arguments

  • + 0 comments

    def print_from_stream(n, stream=EvenStream()): stream.init() #initialize the current variable in the EvenStream() for _ in range(n): print(stream.get_next())