Oct-20-2019, 04:07 PM
(Oct-20-2019, 02:01 PM)newbieAuggie2019 Wrote: Hi!
I'm not sure what you want. Could it be this???:
def length(x,y): print(f"The length of 'ab' is {x + y}.") a = 5 b = 3 length(a, b)that produces the following output:
All the best,
Output:The length of 'ab' is 8.
What if I call it with:
length(c, d) length(e,f)Every time the result should be
The length of 'ab' is ...While it has to be:
The length of 'cd' is ...and
The length of 'ef' is ...