Back-End Programming Exam  >  Back-End Programming Videos  >  Python Tutorial in Hindi  >  Python tutorial in Hindi 73 : List comprehension part 1

Python tutorial in Hindi 73 : List comprehension part 1 Video Lecture | Python Tutorial in Hindi - Back-End Programming

FAQs on Python tutorial in Hindi 73 : List comprehension part 1 Video Lecture - Python Tutorial in Hindi - Back-End Programming

1. List comprehension क्या है और इसका उपयोग क्यों किया जाता है?
Ans. List comprehension एक पारंपरिक Python कंप्रेशन है जिसका उपयोग नयी सूची को एलिमेंट्स के साथ बनाने और प्रक्रिया करने के लिए किया जाता है। यह एक छोटा और संक्षेपित तरीका है जो कोड को स्वचालित और पढ़ने में आसान बनाता है।
2. List comprehension की संरचना क्या है?
Ans. List comprehension का संरचना [expression for item in list] होता है, जहां expression नयी सूची के प्रत्येक आइटम के लिए कोई गणना कोड होता है और item सूची के प्रत्येक आइटम को दर्शाता है।
3. List comprehension का उपयोग किस तरह किया जाता है?
Ans. List comprehension का उपयोग एक सूची के प्रत्येक आइटम को प्रक्रिया करने के लिए किया जाता है, जैसे कि उन्हें मानो फ़िल्टर करना, उनमें परिवर्तन करना, उन्हें मानो नयी सूची में रखना आदि।
4. List comprehension में if कंडीशन का उपयोग कैसे किया जाता है?
Ans. List comprehension में if कंडीशन का उपयोग किसी आइटम को प्रोसेस करने से पहले या उसके बाद करने के लिए किया जा सकता है। यदि कंडीशन सत्य होती है, तो उस आइटम को उठाया जाता है, और यदि कंडीशन गलत होती है, तो उसे छोड़ दिया जाता है।
5. List comprehension में multiple if कंडीशन का उपयोग कैसे किया जाता है?
Ans. List comprehension में multiple if कंडीशन का उपयोग किसी आइटम को प्रोसेस करने से पहले और प्रोसेस करने के बाद करने के लिए किया जा सकता है। कंडीशन्स के बीच एक संयोजक शामिल किया जा सकता है, जैसे "and" या "or"। इस प्रकार, एक आइटम को प्रोसेस किया जाता है केवल यदि सभी कंडीशन्स सत्य होती हैं।
Related Searches

shortcuts and tricks

,

Important questions

,

MCQs

,

Objective type Questions

,

mock tests for examination

,

Previous Year Questions with Solutions

,

Python tutorial in Hindi 73 : List comprehension part 1 Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

Exam

,

Sample Paper

,

pdf

,

Summary

,

Extra Questions

,

practice quizzes

,

Viva Questions

,

Python tutorial in Hindi 73 : List comprehension part 1 Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

Python tutorial in Hindi 73 : List comprehension part 1 Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

Free

,

past year papers

,

Semester Notes

,

ppt

,

study material

,

video lectures

;