Python Forum
Python Forum
>
General
>
News and Discussions
> arithmetic on 2-tuple of 2 numbers
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.
Skaperen
Jul-26-2020, 12:20 AM
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?
Python Forum
>
General
>
News and Discussions
> arithmetic on 2-tuple of 2 numbers