Back-End Programming Exam  >  Back-End Programming Videos  >  Python Tutorial in Hindi  >  Python tutorial in Hindi 74 : list comprehension part 2

Python tutorial in Hindi 74 : list comprehension part 2 Video Lecture | Python Tutorial in Hindi - Back-End Programming

FAQs on Python tutorial in Hindi 74 : list comprehension part 2 Video Lecture - Python Tutorial in Hindi - Back-End Programming

1. list comprehension क्या है और इसका उपयोग क्यों किया जाता है?
Ans. लिस्ट कंप्रेहेंशन, पायथन में एक शॉर्टकट है जो एक लाइन में लिस्ट को फ़िल्टर, मैप और ट्रांसफ़ॉर्म करने की सुविधा प्रदान करता है। इसका उपयोग कोड को संक्षेप में और पढ़ने में आसान बनाने के लिए किया जाता है।
2. list comprehension में क्या विभिन्न विधाएँ हो सकती हैं?
Ans. list comprehension में विभिन्न विधाएँ हो सकती हैं, जैसे कि शर्तों के साथ फ़िल्टरिंग, मानों के साथ मैपिंग, शर्तों के साथ शर्टिंग और नयी लिस्ट के साथ लूपिंग।
3. list comprehension का उपयोग करके कैसे एक लिस्ट में प्रदत्त शर्त के अनुसार फ़िल्टर किया जा सकता है?
Ans. list comprehension का उपयोग करके हम दिए गए शर्त के अनुसार एक लिस्ट में फ़िल्टर कर सकते हैं। इसके लिए हम शर्त के पश्चात सूची के प्रत्येक आइटम के लिए एक "if" शर्त लिखते हैं।
4. list comprehension का उपयोग करके कैसे एक लिस्ट के प्रत्येक आइटम को ट्रांसफ़ॉर्म किया जा सकता है?
Ans. list comprehension का उपयोग करके हम एक लिस्ट के प्रत्येक आइटम को ट्रांसफ़ॉर्म कर सकते हैं। इसके लिए हम नयी लिस्ट के लिए आइटम के पश्चात एक "for" लूप लिखते हैं।
5. list comprehension का उपयोग करके कैसे एक लिस्ट को सॉर्ट किया जा सकता है?
Ans. list comprehension का उपयोग करके हम एक लिस्ट को सॉर्ट कर सकते हैं। इसके लिए हम नयी लिस्ट के लिए आइटम के पश्चात एक "for" लूप और "if" शर्त लिखते हैं जो उचित सॉर्टिंग शर्त को पूरा करता है।
Related Searches

video lectures

,

pdf

,

Exam

,

study material

,

Previous Year Questions with Solutions

,

Python tutorial in Hindi 74 : list comprehension part 2 Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

Important questions

,

MCQs

,

shortcuts and tricks

,

Summary

,

Objective type Questions

,

past year papers

,

Sample Paper

,

mock tests for examination

,

practice quizzes

,

Viva Questions

,

Python tutorial in Hindi 74 : list comprehension part 2 Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

Semester Notes

,

Extra Questions

,

ppt

,

Free

,

Python tutorial in Hindi 74 : list comprehension part 2 Video Lecture | Python Tutorial in Hindi - Back-End Programming

;