Which built-in Python function returns the total number of items in a list, string, tuple, or dictionary?
पायथन का कौन सा इनबिल्ट फंक्शन किसी लिस्ट, स्ट्रिंग, टपल या डिक्शनरी में कुल तत्वों की संख्या बताता है?
Solution Breakdown:
-> len("Python") returns 6, and len([10, 20, 30]) returns 3.
-> Hence, Option (A) is the correct answer.
-> len() फंक्शन किसी भी सीक्वेंस या कलेक्शन की लंबाई (तत्वों की कुल संख्या) बताता है।
-> इसलिए विकल्प (A) बिल्कुल सही है।