82.
What will be the output of the following Python list comprehension?
[j for i in range(2,8) for j in range(i*2, 50, i)]

83.
Write a list comprehension for producing a list of numbers between 1 and 1000 that are divisible by 3.

84.
What will be the output of the following Python code?
s=["pune", "mumbai", "delhi"]
[(w.upper(), len(w)) for w in s]

89.
What will be the output of the following Python code?
myList = [1, 5, 5, 5, 5, 1]
max = myList[0]
indexOfMax = 0
for i in range(1, len(myList)):
    if myList[i] > max:
        max = myList[i]
        indexOfMax = i
 
>>>print(indexOfMax)

Read More Section(Lists in Python)

Each Section contains maximum 100 MCQs question on Lists in Python. To get more questions visit other sections.