0
How to write a function calc() such that it can accept two variables
How can I write a function calc() such that it can accept two variables and calculate the addition and subtraction applied to each .and must return both addition and subtraction in a single return call
3 Answers
+ 1
Thanks but already got the hung of things
0
Hi! you will need to dial this function yourself. what exactly was the problem? you already have at least some start to work?
0
calc = lambda x, y: (x+y, x-y)