0 votes
in Python by

What is the output of the following code?

def bind(func):

    func.data = 9

    return func

@bind

def add(x, y):

    return x + y

print(add(3, 10))

print(add.data)

1) 

13

2) 

Error

3)

13

9   

4)

9

1 Answer

0 votes
by

3)

13

9

Related questions

0 votes
asked Jan 18, 2021 in Python by SakshiSharma
0 votes
asked Jan 18, 2021 in Python by SakshiSharma
...