> You get the binary by doing bin(x), where x is an integer. Note that Python also support binary number literals (prefixed with 0b): In [1]: 0b101 Out[1]: 5 -- http://mail.python.org/mailman/listinfo/python-list
- How to convert base 10 to base 2? gianpycea
- Re: How to convert base 10 to base 2? Benjamin Kaplan
- Re: How to convert base 10 to base 2? Mark Lawrence
- Re: How to convert base 10 to base 2? lipska the kat
- Re: How to convert base 10 to base 2? gianpycea
- Re: How to convert base 10 to base 2? Jean-Michel Pichavant
- Re: How to convert base 10 to base 2? Joel Goldstick
- Re: How to convert base 10 to base ... Ian Kelly
- Re: How to convert base 10 to base 2? Ian Kelly
- Re: How to convert base 10 to base 2? Paul Rubin
- Re: How to convert base 10 to base 2? Miki Tebeka