def func(a,b):

a = a -1

b.append(a)

x = 5

y = [8,7,6]

func(x,y)

print(x,y)

A) 4 [8,7,6,5]

B) 4 [8,7,6,4]

C) 5 [8,7,6,5]

D) 5 [8,7,6,4]

E) 5 [8,7,6] Given the following function definition, which option can NOT be used to call it?

def f(x1,x2,x3,x4):

return x1+x2+x3+x4

a. f(1, 2, 3, 4)

b. f(x4=4, x3=3, x2=2, x1=1)

c. f(x1=1, x2=2, 3, 4)

d. f(1, 2, 3, x4=4) What is printed by the following code?

a = {1,2,5,7}

b = {2,4,5,8}

# & = ADDS, | TAKES SIMILAR ONES, ^ DIFFER

c = {1,3,5}

# - IS THE DIFFERENCE VALS OF BOTH

print(sorted(a-(b&c)))

a. {}

b. {7}

c. {1,2,7}

d. {1,2,5,7}

e. {3,4,8} Which of the following are not valid ways to define functions? Select any/all that apply.

def func(a=b, b=c, c=0):

#code goes here

def func(a, b, c, c=0):

#code goes here

def func(d, c, b=2, a=1):

#code goes here

def func(a, b=0, c):

#code goes here given:

d = {1:(9,8,7,6), '1':[5,4], 'one':'321'}

what do these expressions evaluate to?

len(d[0])

d['1'][1]

d.get(1.1, 1)

d[(9,8,7,6)]