What is the output of the following Python code snippet?
def mul(n):
def inner(x):
return x * n
return inner
print(mul(2)(4))
def inner(x):
return x * n
return inner
print(mul(2)(4))
45,334 multiple choice questions from every subject, newest first. Switch on practice mode to hide the answers and test yourself.