Advertisements
Advertisements
प्रश्न
What will be the output of the following code?
list = [2**x for x in range(5)]
print(list)
एक शब्द/वाक्यांश उत्तर
Advertisements
उत्तर
[1,2,4,8,16]
shaalaa.com
Introduction to List
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
Pick odd one in connection with collection data type?
Let list1 = [2,4,6,8,10], then print(List1[-2]) will result in ______
If List = [10 ,20 ,30 ,40 ,50] then List[2] = 35 will result ______
Which of the following statement is not correct?
The keys in Python, the dictionary is specified by ______
What is a List in Python?
Differentiate del with remove( ) function of List.
Explain the difference between del and clear( ) in the dictionary with an example.
What the different ways to insert an element in a list. Explain with a suitable example.
What is the purpose of range( )? Explain with an example.
