Why a and b interchange for x and y | SoloLearn: Learn to code for FREE!

0

Why a and b interchange for x and y

def multiply(x, y): return x * y a = 4 b = 7 operation = multiply print(operation(a, b))

5/29/2020 8:41:03 AM

wonder nature

2 Answers

New Answer

+1

It's about scope: https://code.sololearn.com/cKKoWv7uu3Bm/?ref=app

+3

wonder nature Nope, they are not interchanged you can see by following the code below 👇👇👇 def multiply(x, y): print(x,y) return x * y