Computer Fundamental MCQs - Introduction to Computer
Computer Fundamental MCQs - Introduction to Computer
Computer Fundamental MCQs
Python में कौन-सा फंक्शन किसी स्ट्रिंग में उपस्थित वर्णों की संख्या बताता है?
Options:
- Length
- Len
- L
- Numchar
Right Answer: Len
Python में len() एक बिल्ट-इन फंक्शन है जिसका उपयोग किसी स्ट्रिंग, सूची, ट्यूपल, डिक्शनरी या अन्य संग्रह (Collection) की लंबाई ज्ञात करने के लिए किया जाता है। यदि इसे स्ट्रिंग पर लागू किया जाए, तो यह उसमें मौजूद कुल वर्णों (Characters) की संख्या लौटाता है, जिसमें स्पेस भी शामिल होते हैं। उदाहरण के लिए len("Computer") का परिणाम 8 होगा। यह Python के सबसे अधिक उपयोग किए जाने वाले फंक्शनों में से एक है।
This question is part of Computer Fundamental MCQs - Introduction to Computer, which has 65 practice questions with answers.