Python Forum
arithmetic on 2-tuple of 2 numbers - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: arithmetic on 2-tuple of 2 numbers (/thread-28606.html)



arithmetic on 2-tuple of 2 numbers - Skaperen - Jul-26-2020

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?