Keyword in python
- keywords रिजर्व्ड वर्ड्स होते है | (keywords are reserved words.)
- Python मे 33 reserved keyword होते है | (33 reserved keywords in python 3.7)
- प्रत्येक keyword का अपना एक meaning तथा एक specific operation होता है |
False | class | finally | True | return |
continue | None | for | lambda | try |
is | def | from | nonlocal | while |
not | del | as | and | with |
global | elif | if | or | yield |
assert | else | import | pass | break |
except | in | raise |
Python Identifiers
- Identifiers किसी प्रोग्राम मे fundamental building blocks का नाम होता है |
- identifiers एक वेरिएबल , क्लास , ऑब्जेक्ट , फंक्शन , आदि हो सकते है |
Identifiers को डिफाइन करने के लिए कुछ नियम बनाये गए है |
1 . Identifiers का नाम किसी कीवर्ड का नाम नहीं हो सकता है | क्योकि ये reserverd word होते है |
2 . Identifiers अंको तथा शब्दों का एक लम्बा sequence होता है | Identifier का नाम कितना भी बड़ा हो सकता है |
3 . underscore ( _ ) के अलावा किसी अन्य स्पेशल करैक्टर का use indentifier मे नहीं किया जा सकता है |
4 . आइडेंटिफायर का पहला character या तो uderscore ( _ ) होता है | या फिर कोई character होता है | किसी digit से हम Indentifier को शुरू नहीं कर सकते है |
5 . python case – sensitive होने के कारण python मे कैपिटल लेटर (A to Z) तथा small letter (a to z) दोनों का अलग अलग अर्थ होता है | identifier को capital , small letter तथा underscore (_) को मिला कर भी identifier बना सकते है |
उदहारण :- class , School _Name |
Python - Data types
Python :- Control Statement in hindi
Python Loops in hindi
One Reply to “Python Keywords & Identifiers”
Comments are closed.