Python Forum

Full Version: arithmetic on 2-tuple of 2 numbers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
a function returns a 2-tuple of 2 numbers. i want to apply an arithmetic operation to both numbers. is there a nice neat way to do this in an expression without having to def a function or class to do it?