#!/usr/bin/python x = 10 y = 23.8 print coerce(x,y) $python coerce.py (10.0, 23.8) $python coerce.py (10.0, 23.8) $
Daily Archives: December 19, 2017
Convert an integer number to a binary string
#!/usr/bin/python x = 10 print bin(x) $python bin.py 0b1010 $python bin.py 0b1010 $