Anasayfa
/
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

Çözüm

4.4 (160 Oylar)
Ufuk
Uzman doğrulaması
Usta · 5 yıl öğretmeni

Cevap

The correct answer is b) 3.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.