Ana sayfa
/
Teknoloji
/
What is the result of len( 'a':1,'b':2,'c':3 ) ? (50 Points) [4 a) 2 c) 4 d) 1 b) 3

Soru

What is the result of len( 'a':1,'b':2,'c':3 ) ? (50 Points) [4
a) 2
c) 4
d) 1
b) 3

What is the result of len( 'a':1,'b':2,'c':3 ) ? (50 Points) [4 a) 2 c) 4 d) 1 b) 3

Çözüm

4.4160 Voting
avatar
Ufuk
Usta · 5 yıl öğretmeni
Uzman doğrulaması

Cevap

The correct answer is b) 3.<br /><br />In Python, the `len()` function returns the number of items in an object. In this case, the object is a dictionary with three key-value pairs: 'a':1, 'b':2, and 'c':3. Therefore, the length of the dictionary is 3.
Derecelendirmek için tıklayın: