Smallest meaningful component in program
जो सबसे छोटा वाला components होता है in program उसे हम Python tokens बोलते है
Python के पास ये सब tokens है
Keywords,
Identifiers,
Literals,
Operator
Keywords
Keywords क्या होता है । ये एक special reserved words होते है । python मैं कुछ word reserved होते है । मतलब उनकी अहमियत कुछ खास होती है उनको आप किसी ओर चीज के लिए use नही कर सकते
इन सबको आप किसी variable का नाम , किसी function का नाम या किसी class का नाम के लिए use नही कर सकते ।
Identifier's
Identifiers are name used for variables , functions or objects
Variable के नाम हो , function के नाम हो या object के नाम हो वो सब python identifiers कहलाते है
कुछ rules है
1. Variables का नाम कभी भी underscore के साथ start नही हो सकता ।
2. Identifier's case sensitive होते है
मतलब अगर तुमने एक variable create किया Student जिसका first letter capital है और फिर से तुमने एक variable create किया student जिसका first letter small है तो ये दोनो variables different हो जाएंगे
3. Variable का first letter कभी भी digite नही हो सकता
Python Literals
Literals are constant in Python .
Literals बस एक constant है जिसकी value change नही हो सकती
Literals क्या है
तो जो value आप variable मैं store करते हो वो literals है
0 Comments