Back-End Programming Exam  >  Back-End Programming Videos  >  Python Tutorial in Hindi  >  Python tutorial in Hindi 14 : len() ; int() ; str() function

Python tutorial in Hindi 14 : len() ; int() ; str() function Video Lecture | Python Tutorial in Hindi - Back-End Programming

FAQs on Python tutorial in Hindi 14 : len() ; int() ; str() function Video Lecture - Python Tutorial in Hindi - Back-End Programming

1. len() function क्या करता है?
उत्तर1. len() फ़ंक्शन एक बिल्ट-इन Python फ़ंक्शन है जो स्ट्रिंग, लिस्ट, ट्यूपल और अन्य संरचनाओं की लंबाई (यानी तत्वों की संख्या) को निर्धारित करने के लिए उपयोग की जाती है। इसका उपयोग करके हम दिए गए संरचना में मौजूद तत्वों की संख्या को प्राप्त कर सकते हैं।
2. int() फ़ंक्शन क्या करता है?
उत्तर2. int() फ़ंक्शन Python में एक बिल्ट-इन फ़ंक्शन है जो दिए गए आर्ग्यूमेंट को एक पूर्णांक में परिवर्तित करता है। यदि आर्ग्यूमेंट एक स्ट्रिंग है, तो यह स्ट्रिंग को एक पूर्णांक में परिवर्तित करने का प्रयास करेगा।
3. str() फ़ंक्शन क्या करता है?
उत्तर3. str() फ़ंक्शन Python में एक बिल्ट-इन फ़ंक्शन है जो दिए गए आर्ग्यूमेंट को एक स्ट्रिंग में परिवर्तित करता है। इसका उपयोग करके हम अन्य डेटा टाइप को स्ट्रिंग में परिवर्तित कर सकते हैं।
4. len() फ़ंक्शन किस तरह का परिणाम देता है?
उत्तर4. len() फ़ंक्शन दिए गए संरचना में मौजूद तत्वों की संख्या को देता है। यदि एक स्ट्रिंग के लिए इसे इस्तेमाल किया जाता है, तो यह स्ट्रिंग में मौजूद अक्षरों की संख्या को देगा। यदि एक लिस्ट या ट्यूपल के लिए इसे इस्तेमाल किया जाता है, तो यह उसमें मौजूद तत्वों की संख्या को देगा।
5. int() और str() फ़ंक्शन में क्या अंतर है?
उत्तर5. int() और str() फ़ंक्शन दोनों फ़ंक्शन हैं जो डेटा को परिवर्तित करने के लिए उपयोग किए जाते हैं, लेकिन उनका उपयोग अलग-अलग ढंग से किया जाता है। int() फ़ंक्शन दिए गए आर्ग्यूमेंट को एक पूर्णांक में परिवर्तित करता है, जबकि str() फ़ंक्शन दिए गए आर्ग्यूमेंट को एक स्ट्रिंग में परिवर्तित करता है।
Related Searches

shortcuts and tricks

,

Important questions

,

Summary

,

Semester Notes

,

ppt

,

video lectures

,

Python tutorial in Hindi 14 : len() ; int() ; str() function Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

Sample Paper

,

Free

,

Extra Questions

,

Exam

,

pdf

,

Viva Questions

,

Python tutorial in Hindi 14 : len() ; int() ; str() function Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

study material

,

mock tests for examination

,

past year papers

,

practice quizzes

,

Previous Year Questions with Solutions

,

Objective type Questions

,

MCQs

,

Python tutorial in Hindi 14 : len() ; int() ; str() function Video Lecture | Python Tutorial in Hindi - Back-End Programming

;