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 क्या है और इसका उपयोग कैसे करें?
उत्तर: str एक डेटा टाइप है जिसका उपयोग स्ट्रिंग (पाठ) को संग्रहीत करने के लिए किया जाता है। यह पाठ को एक से अधिक वर्णों के संग्रह के रूप में प्रदर्शित करता है। आप 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

Free

,

Previous Year Questions with Solutions

,

Extra Questions

,

Viva Questions

,

MCQs

,

practice quizzes

,

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

,

Important questions

,

study material

,

Exam

,

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

,

mock tests for examination

,

Semester Notes

,

Sample Paper

,

shortcuts and tricks

,

ppt

,

past year papers

,

pdf

,

Objective type Questions

,

Summary

,

video lectures

;