Question: Q2 Given below is the Python function program. What's wrong in it ? PL = 3.14 def add(x, y): return x + y def diff(x,

Q2

Given below is the Python function program. What's wrong in it ? PL = 3.14 def add(x, y): return x + y def diff(x, y): return (x-y) if x > y else (y-x) def area_of_circle(radius): return Pl * radius * radius def area_of_rectangle(width ,length): return width * length Syntax error Nothing is found to be wrong calling function is missing def declaration is wrong Incorrect format What would be the output of the below given code: Dict = { 'Name': 'Daniel', 1: [1, 2, 3, 4]} print(" Dictionary with the use of Mixed Keys: ") print(Dict) {1: [1, 2, 3, 4], 'Name': 'Daniel'} Dictionary with the use of Mixed Keys: {1: [1, 2, 3, 4], 'Name': 'Daniel') Dictionary with the use of Mixed Keys: {1: [1, 2, 3, 4], 'Name': 'Daniel'} Dictionary with the use of Mixed Keys: { 'Name': 'Daniel'} , 1: [1, 2, 3, 4} Dictionary with the use of Mixed Keys: {1, 2, 3, 4], 'Name': 'Daniel'}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
