myList = ["A", "B", 1, 2]

print("A" in myList) # outputs: True
print(2 not in myList) # outputs: False


newList = myList[:] #this copies all elements of myList in newList

print (newList)

anotherList = myList[0:2] #copies part of the list

print (anotherList)
b390632d509955853008317830602d809f2d6a0d
<mask token>

<mask token>
print('A' in myList)
print(2 not in myList)
<mask token>
print(newList)
<mask token>
print(anotherList)

myList = ['A', 'B', 1, 2]
print('A' in myList)
print(2 not in myList)
newList = myList[:]
print(newList)
anotherList = myList[0:2]
print(anotherList)

myList = ["A", "B", 1, 2]

print("A" in myList) # outputs: True
print(2 not in myList) # outputs: False


newList = myList[:] #this copies all elements of myList in newList

print (newList)

anotherList = myList[0:2] #copies part of the list

print (anotherList)