Multiple Choice Questions
![]() Share with a Friend |
listOne = [20, 40, 60, 80]
listTwo = [20, 40, 60, 80]
print(listOne == listTwo)
print(listOne is listTwo)
A). TRUE
Every time when we modify the string, Python Always create a new String and assign a new string to that variable.
A). TRUE
sampleSet = {"Jodi", "Eric", "Garry"}
sampleSet.add(1, "Vicki")
print(sampleSet)
A). {‘Vicki’, ‘Jodi’, ‘Garry’, ‘Eric’}
for i in range(10, 15, 1):
print( i, end=)
A). 10, 11, 12, 13, 14,
for x in range(0.5, 5.5, 0.5):
print(x)
A). [0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5]