Back-End Programming Exam  >  Back-End Programming Videos  >  Python Tutorial in Hindi  >  Python tutorial in Hindi 70: str ; len and del method for class ; object

Python tutorial in Hindi 70: str ; len and del method for class ; object Video Lecture | Python Tutorial in Hindi - Back-End Programming

FAQs on Python tutorial in Hindi 70: str ; len and del method for class ; object Video Lecture - Python Tutorial in Hindi - Back-End Programming

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

mock tests for examination

,

past year papers

,

Extra Questions

,

Semester Notes

,

practice quizzes

,

Summary

,

pdf

,

Free

,

Objective type Questions

,

Sample Paper

,

Important questions

,

shortcuts and tricks

,

Previous Year Questions with Solutions

,

study material

,

ppt

,

video lectures

,

Exam

,

MCQs

,

Python tutorial in Hindi 70: str ; len and del method for class ; object Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

Python tutorial in Hindi 70: str ; len and del method for class ; object Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

Python tutorial in Hindi 70: str ; len and del method for class ; object Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

Viva Questions

;