You are viewing a single comment's thread. Return to all comments →
Debug the given function print_from_stream
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).
locals()
it should use an instance of EvenStream class defined in the code stubs below
EvenStream
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 .
OddStream
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Default Arguments
You are viewing a single comment's thread. Return to all comments →
I'm not sure where the function is given - there is no
print_from_stream
name inlocals()
(or any other name that could lead to it).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
andOddStream
- and it seems to have worked: https://www.hackerrank.com/challenges/default-arguments/submissions/code/424109419 .