Skip to content

TRUEANGLE

BEAUTY AND PLAY

  • GitLab
  • GitHub
  • Configuration
  • AI
  • BLOG
  • LINUX
  • ABOUT
    • ABOUT
    • Perception Style
    • Motivation

Category Archives: python-sl

Return a tuple consisting of the two numeric arguments converted to a common type

#!/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) $

Posted byjeffrinDecember 19, 2017Posted innon-essential-built-inTags: library, Python

Convert an integer number to a binary string

#!/usr/bin/python x = 10 print bin(x) $python bin.py 0b1010 $python bin.py 0b1010 $

Posted byjeffrinDecember 19, 2017Posted inbuilt-in, python-sl
September 2026
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  
« Aug    
TRUEANGLE, Proudly powered by WordPress.