Skip to content

TRUEANGLE

BEAUTY AND PLAY

  • DOLLECT
  • Others
  • Configuration
  • AI
  • BLOG
  • ABOUT
    • ABOUT
    • Perception Style

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

Posted byjeffrin December 19, 2017


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

Post navigation

Previous Post Previous post:
Convert an integer number to a binary string
Next Post Next post:
How to find a type of an object in Golang?
December 2017
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Nov   Jan »
TRUEANGLE, Proudly powered by WordPress.