Consider the function delta, when will the function return a value of 1?
def delta(x):
if x==0:
y=1
else:
y=0
return(y)
Given the function add shown below, what does the following return?
def add(x):
return(x x)
add('1')
What is the correct way to sort list 'B' using a method? The result should not return a new list, just change the list 'B'.
What is the output of the following lines of code?
a=1
def do(x):
return(x a)
print(do(1))
Write a function name add that takes two parameter a and b, then return the output of a b (Do not use any other variable! You do not need to run it. Only write the code about how you define it.)