Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. This operator can be used to find the symmetric difference of two sets. | & -

ID: 3756320 • Letter: 1

Question

1. This operator can be used to find the symmetric difference of two sets.

|

&

-

^

2. Python core libraries are called

packages

modules

components

libraries

3.

myList=[]

Which of the following statements would you use to add the string 'Labrador' to the list at index 0?

myList[0] = 'Labrador'

myList.insert(0, 'Labrador')

myList.push('Labrador')

myList.insert('Labrador', 0)

4. Which of the following data types is not supported in Python?

Tuple

Dictionary

Generics

List

5.

Which of the following operators determines whether a key exists in a dictionary?

&

in

^

?

a.

|

b.

&

c.

-

d.

^

Explanation / Answer

1. C). -

2. b). modules

3. b). myList.insert(0,'Labrador')

4. c). generics

5. b). in