The bin() Function


Hello coder! I got stuck on a very simple exercise. I get the wanted results inside the console and it was what i expected but i also get this error:
Oops, try again. It looks like you didn't print the binary representation of the number 2.

It's what is expected

for i in range(2,6):
    print bin(i) + '\n'


Hi just remove the new line '\n'


Thank you very much wizmarco. (: