Default Arguments

  • + 0 comments

    Debug the given function print_from_stream

    I'm not sure where the function is given - there is no print_from_stream name in locals() (or any other name that could lead to it).

    it should use an instance of EvenStream class defined in the code stubs below

    I am a new user on this platform and I have no idea where these code stubs are.

    I have assumed that what the author actually meant was to implement print_from_stream, EvenStream and OddStream - and it seems to have worked: https://www.hackerrank.com/challenges/default-arguments/submissions/code/424109419 .