दोस्तों अगर आप सरकारी एग्जाम्स की तैयारी कर रहे हैं और आपके एग्जाम में जो लेवल रखा गया है वह कंप्यूटर का O level तो आपको पाइथन लैंग्वेज का ज्ञान होना अति आवश्यक है आज के इस लेख के माध्यम से हम आपको पाइथन लैंग्वेज से संबंधित कुछ महत्वपूर्ण तथ्यों से रूबरू कराएंगे | जो आपके सरकारी जॉब से रिलेटेड सभी प्रकार के एग्जाम चाहे फिर वह यूपीपीसीएल UPPCL हो या फिर आपका upsssc का एग्जाम क्यों ना हो | वर्तमान समय में पाइथन लैंग्वेज से काफी बड़ी मात्रा में प्रश्न पूछे जा रहे हैं -और इस लेख में जो भी आपको नोट्स प्रोवाइड किया जा रहे हैं वह पूरी तरह से सचिन अरोरा ( Sachin Arora) और Exampur के नोट से बनाए गए हैं
पाइथन लैंग्वेज क्या है ?
पाइथन एक उच्च-स्तरीय, सामान्य-उद्देश्य वाली, इंटरैक्टिव, ऑब्जेक्ट-ओरिएंटेड, स्क्रिप्टिंग भाषा है। यह एक व्याख्यात्मक भाषा है, जिसका अर्थ है कि कोड को चलाने के लिए इसे पहले संकलित करने की आवश्यकता नहीं है। पाइथन कोड को पढ़ना और समझना आसान है, जो इसे शुरुआती लोगों के लिए एक अच्छी भाषा बनाता है।
जैसा कि आप सभी जानते हैं कि कंप्यूटर विषय में जो एग्जाम होते हैं उसको इंग्लिश भाषा में देना अधिक आसान होता है तो जो हम नोट से आपको प्रोवाइड कर रहे हैं वह इंग्लिश में होंगे | आप आसानी से समझ पाएंगे |
पाइथन लैंग्वेज की विशेषताएं /characteristics of python language
Versions of python
1. Python 0.9 | Developed in 1989 but released in 1991 |
2. Python 1.0 | Developed in 1994 |
3. Python 2.0 | Developed in 2000 |
4. Python 3.0 | Developed in 2008 ( Total keywords 33 ) |
5 Python 3.8 | Developed in 2019 (Total keyboards 33 ) |
6. Python 3.11.0 | Developed in 22 October 2022 (35 Keywords) |
7. Python 3.11.1 | Developed in 6 December 2022 (35 Keywords) |
8. Python 3.12.0 | Developed in on October 2, 2023 |
Python Interpreter
पाइथन इंटरप्रेटर एक ऐसा प्रोग्राम है जो अन्य पाइथन प्रोग्राम को एग्जीक्यूट करता है एक पाइथन प्रोग्राम में सोर्स कोड (उदाहरण- pyRoot.py) और पाइथन लैंग्वेज में सोर्स कोड को कंपाइलर द्वारा बाइट कोड में बदला जाता है जो एक्सटेंशन .pyc (ex:pyRoot.phy) के साथ फाइल बनता है| पाइथन इंटरप्रेटर की सबसे बड़ी खासियत क्या है कि कंपाइलेसन प्रक्रिया होती है वह आंतरिक रूप से यानी हिडन रूप से होती है | बाइट कोड पाइथन वर्चुअल मशीन को दिया जाता है जो बाइट कोर्ट को मशीन कोर्ट में परिवर्तित करता है या मशीन कोड प्रोसेसर द्वारा रन कराया जाता है और अंत में या हमें परिणाम प्रदर्शित करता है
वैराइटीज ऑफ़ पाइथन/varieties of python
Python keywords –
पायथन कीवर्ड आरक्षित शब्द( reserved words) हैं जिनका पायथन भाषा में विशेष अर्थ होता है| Reserved words का उपयोग variable names, function names, or any other identifier के रूप में किया जा सकता है कोडिंग के सिंटैक्स को परिभाषित करने के लिए कीवर्ड का उपयोग किया जाता है। इनका उपयोग classes, functions, loops, conditions और अन्य पायथन भाषा के महत्वपूर्ण पहलुओं को परिभाषित करने के लिए किया जाता है।
No. | Keyword |
---|---|
1. | False |
2. | None |
3. | True |
4. | and |
5. | as |
6. | assert |
7. | async |
8. | await |
9. | break |
10. | class |
11. | continue |
12. | def |
13. | del |
14. | elif |
15. | else |
16. | except |
17. | finally |
18. | for |
19. | from |
20. | global |
21. | if |
22. | import |
23. | in |
24. | is |
25. | lambda |
26. | nonlocal |
27. | not |
28. | or |
29. | pass |
30. | raise |
31. | return |
32. | try |
33. | while |
34. | with |
35. | yield |
Keywords definition
keywords | Definition |
And | Logical operator |
As | For alias creation (pronoun) |
Break | To exist from a loop |
Class | To define a class |
Continue | To continue to the next iteration off loop |
elif | Conditional statement |
except | To catch and exceptional ( mistake) |
For | For looping |
Global | To declare Global variable |
If | Conditional statement |
Import | Two import all module |
In | To check value is presented in the list , tupple |
Is | To test equality |
Lambda | For anonymous function |
None | null vale no return |
Non local | Non local variable |
Not | negations logical operators |
Or | Logical operator |
Pass | Nothing execute |
Return | Exit from function and return value |
True | Boolean value |
false | Boolean value |
Try | To catch statement |
While | While loop |
def | Define of function |
Assert | Used for debugging |
Del | Delete an object |
From | Import specific module |
Finally | Handling of except |
raise | raise Exception |
With | Exception handling |
Yield | Returning value |
Features of object oriented programming language
- Class: group of similar objects
- Object: it is entity that exit
- Encapsulation: packing of data and function in a single component
- Data abstraction: hiding background details
- Polymorphism: allow same function name to act differently in different class
- Inheritance object of child class get the properties of object of parent class
Object oriented programming language list
- Simula 1967
- Smalltalk
- C++
- Python
- JavaScript
- Visual Basic
- PHP
- Ruby
Python data type
डाटा टाइप का उपयोग प्रोग्राम में variables को परिभाषित करने के लिए किया जाता है
1. Numeric
a. Int
b Float
c. Complex
2. Dictionary
a. Name= “vinay”
b. Contact number= “91xxxxxxx95”
c. Car = ” Maruti”
3.Boolean
a. true , false
b. Yes or no
c. On ,off
4. Set
इसका प्रयोग किसी भी वेरिएबल के लिए मेमोरी असाइन करने में होता है
5. Sequence type
a. List
b. Tuple
Data type with example
Text type – string ( X= ” hellow world” = str ) |
Numeric type-float ,int , complex ( 20 = int ) (20.5 = float ) ( 1J= complex) |
Sequence type-list, Tuple ,range ( list को सदैव बड़े ब्रैकेट से प्रदर्शित करते हैं[list] or tuple को सदैव छोटे ब्रैकेट (tuple) मैं प्रदर्शित करते हैं |
Mapping type-Dic मंजाले ब्रैकेट { } से dic को प्रदर्शित करते हैं x= { “name” “vinay” , “age” ” 26″} = Dic |
Set-set, frozen set सेट को भी मंजाले ब्रैकेट{} उसे कर कर प्रदर्शित किया जाता है {“ram”,”shyam”,”gopal”}= set तथा frozen set के लिए छोटे ब्रैकेट के अंदर मंजाले ब्रैकेट ब्रैकेट को use ({}) करके प्रदर्शित किया जाता है जैसे की- ({“apple”,”banana”})=fozen set |
Boolean type– Ex: (a>b && a> c) is a Boolean expression. |
None type |
Binary type– bytes , byte array , memory view |
हमारे द्वारा इस लेख में प्रदर्शित की गई सभी जानकारी पूरी तरह से हमने YouTube अपने खुद के हैंडरायटन नोट्स की मदद से बनाया है| आशा करते हैं हमारे द्वारा आपके एग्जाम संबंधित पैटर्न से रिलेटेड जो हमने आपको सामग्री प्रदान किया वह आपके लिए उपयोगिता साबित होगी अगर आपका हमारा इलेक्शन आता है तो अपने दोस्तों के साथ साझा करें और अगर आपके पास कुछ ज्यादा है तो हमें ईमेल कर सकते हैं
अधिक जानकारी के लिए सचिन अरोरा सर के चैनल को सब्सक्राइब कर सकते हैं