Notifications
Clear all

def foo(x,y,z):

1 Posts
1 Users
0 Likes
116 Views
(@schultzachariah)
Posts: 745
Noble Member
Topic starter
 

What is the expected output of the following code?

def foo(x,y,z):

return x(y) - x(z)

print{f00(lambda x: x % 2, 2, 1) )

  • A . 1
    B. 0
    C. -1
    D. an exception is raised

Show Answer Hide Answer

Suggested Answer: C
 
Posted : 24/11/2022 9:49 am
Topic Tags

Latest Python Institute PCAP-31-03 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: