The bin() Function


#1



https://www.codecademy.com/courses/python-intermediate-en-KE1UJ/0/4?curriculum_id=4f89dab3d788890003000096#

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'


#2

Hi just remove the new line '\n'


#3

Thank you very much wizmarco. (: