Back-End Programming Exam  >  Back-End Programming Videos  >  Python Tutorial in Hindi  >  Python tutorial in Hindi 35 : loops inside list

Python tutorial in Hindi 35 : loops inside list Video Lecture | Python Tutorial in Hindi - Back-End Programming

80 videos

FAQs on Python tutorial in Hindi 35 : loops inside list Video Lecture - Python Tutorial in Hindi - Back-End Programming

1. लिस्ट के अंदर लूप का उपयोग क्यों किया जाता है?
उत्तर: एक लिस्ट के अंदर लूप का उपयोग किसी एक्शन को लिस्ट के हर आइटम पर एक बार चलाने के लिए किया जाता है। इससे हम एक ही कोड ब्लॉक को बार-बार लिखने की जरूरत नहीं होती है और हम आसानी से लिस्ट के सभी आइटम्स पर एक्शन लागू कर सकते हैं।
2. लूप के लिए कौन-से टाइप्स उपलब्ध होते हैं?
उत्तर: पायथन में विभिन्न तरीकों के लूप्स होते हैं, जैसे कि for लूप, while लूप, और do-while लूप। इनमें से हर एक लूप का अपना उपयोग और विशेषताएं होती हैं।
3. for लूप का उपयोग कैसे किया जाता है?
उत्तर: for लूप का उपयोग लिस्ट के हर आइटम पर एक्शन लागू करने के लिए किया जाता है। इसकी सिंटेक्स निम्नलिखित होती है: for आइटम in लिस्ट: कोड ब्लॉक यहाँ, आइटम वेरिएबल है जिसका आप लिस्ट के हर आइटम पर एक्शन लागू करने के लिए उपयोग करते हैं, और लिस्ट वेरिएबल है जिसमें आपके लिस्ट के आइटम्स होते हैं।
4. while लूप क्या होता है और इसका उपयोग कैसे किया जाता है?
उत्तर: while लूप एक conditional लूप होता है जिसका उपयोग किसी शर्त के संतोषानुसार एक्शन को बार-बार चलाने के लिए किया जाता है। इसकी सिंटेक्स निम्नलिखित होती है: while शर्त: कोड ब्लॉक यहाँ, शर्त वेरिएबल है जिसका आप एक्शन को चलाने के लिए जांच करते हैं। जब तक यह शर्त सत्य होती है, लूप के बार-बार चलते रहते हैं।
5. do-while लूप कैसे काम करता है?
उत्तर: do-while लूप एक conditional लूप होता है जिसका उपयोग एक्शन को कम से कम एक बार तो चलाने के लिए किया जाता है, चाहे उसकी शर्त सत्य हो या न हो। इसकी सिंटेक्स निम्नलिखित होती है: do: कोड ब्लॉक while शर्त यहाँ, शर्त वेरिएबल है जिसका आप एक्शन को चलाने के लिए जांच करते हैं। लूप कोड ब्लॉक को सबसे पहले एक बार चलाया जाता है, और फिर शर्त की जांच की जाती है। यदि शर्त सत्य होती है, तो लूप फिर से चलता रहता है, और यदि शर्त गलत होती है, तो लूप बंद हो जाता है।
Related Searches

Python tutorial in Hindi 35 : loops inside list Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

Objective type Questions

,

Python tutorial in Hindi 35 : loops inside list Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

practice quizzes

,

Extra Questions

,

video lectures

,

MCQs

,

past year papers

,

Important questions

,

Exam

,

shortcuts and tricks

,

Python tutorial in Hindi 35 : loops inside list Video Lecture | Python Tutorial in Hindi - Back-End Programming

,

Viva Questions

,

ppt

,

pdf

,

mock tests for examination

,

Sample Paper

,

Summary

,

Semester Notes

,

Previous Year Questions with Solutions

,

study material

,

Free

;