Python Tutorial in Hindi (हिंदी में पाइथन सीखें)
Python Keywords in Hindi (सभी कीवर्ड्स Example के साथ): Full List
Table of Contents
- परिचय
- पायथन कीवर्ड की सूची (List of Python Keywords in Hindi)
- पायथन में वैल्यू कीवर्ड: True, False, None
- Python Operator Keywords: and, or, not, in, is
- पायथन इटरेशन कीवर्ड (Iteration Keywords): for, while, break, continue
- पायथन कंडीशनल कीवर्ड (Python Conditional Keywords): if, else, elif
- पायथन स्ट्रक्चर कीवर्ड्स (Python Structure Keywords): def, class, with, as, pass, lambda
- Python Returning Keywords- return, yield
- पायथन इम्पोर्ट कीवर्ड्स - import, from
- पायथन एक्सेप्शनल हैंडलिंग कीवर्ड्स: try, except, raise, finally, assert
- पायथन वेरिएबल हैंडलिंग कीवर्ड: del, global, nonlocal
- Python Asynchronous Keywords- async, await
- पायथन कीवर्ड की पहचान कैसे करें?
- Python में Keywords कैसे Retrieve करें?
- Python Keywords से संबंधित एमसीक्यू (MCQ)
Python Keywords से संबंधित अक्सर पूछे जाने वाले प्रश्न
पायथन में कीवर्ड reserved words हैं जिनके भाषा में predetermined meaning और functionalities होती हैं। इनका उपयोग पायथन प्रोग्राम की Structure, behavior और flow को परिभाषित करने के लिए किया जाता है। कीवर्ड का उपयोग identifiers (variable name, function name, आदि) के रूप में नहीं किया जा सकता है।
पायथन में 35 कीवर्ड हैं। ये कीवर्ड various purposes की पूर्ति करते हैं, जैसे Control Structure, डाटा टाइप और Program Logic को परिभाषित करना।
नहीं, आप कीवर्ड का उपयोग variable name or identifier के रूप में नहीं कर सकते। यदि आप किसी कीवर्ड को identifier के रूप में उपयोग करने का प्रयास करते हैं तो पायथन एक syntax error occurred करेगा।
pass keyword एक प्लेसहोल्डर है जो कुछ नहीं करता है। इसका उपयोग अक्सर एक Temporary आधार के रूप में किया जाता है जब आपको syntactically सही कोड की आवश्यकता होती है लेकिन आपने अभी तक real logic लागू नहीं किया है।
पायथन में कोई नहीं एक special constant है जो किसी Value की absence और zero value का प्रतिनिधित्व करता है। इसे अक्सर उन फ़ंक्शंस के लिए default return value के रूप में उपयोग किया जाता है जो स्पष्ट रूप से कुछ भी नहीं लौटाते हैं।
पायथन में Iteration कीवर्ड में for और while शामिल हैं, जिनका उपयोग लूप बनाने के लिए किया जाता है। लूप्स आपको कोड के एक ब्लॉक को बार-बार execute करने की अनुमति देते हैं, या तो निश्चित संख्या में (लूप के लिए) या जब तक एक निश्चित condition पूरी हो जाती है (लूप के दौरान)।