1
asked in 1 exam1 परीक्षा में पूछा गया
AEDPM (L-08) IT Department — RCF/Kapurthala, 2026PYTHONपायथन
ITS AUTHOR, AND HOW IT READSइसके रचयिता, और यह कैसे पढ़ी जाती है
Python was created by GUIDO VAN ROSSUM and first released in 1991.
- INDENTATION defines a block, in place of the braces other languages use
- # starts a comment
- print() displays output; len() returns the length of a list or string
- def defines a function; class creates a class; import loads a module
- इंडेंटेशन एक ब्लॉक तय करता है, उन ब्रेसेस के स्थान पर जो अन्य भाषाएँ उपयोग करती हैं
- # टिप्पणी शुरू करता है
- print() आउटपुट दिखाता है; len() सूची या स्ट्रिंग की लंबाई देता है
- def फंक्शन परिभाषित करता है; class क्लास बनाता है; import मॉड्यूल लाता है
2
asked in 1 exam1 परीक्षा में पूछा गया
AEDPM (L-08) IT Department — RCF/Kapurthala, 2026THE DATA TYPESडेटा टाइप
- LIST: an ordered collection you can change; it is MUTABLE
- TUPLE: like a list, but IMMUTABLE once made
- DICTIONARY, dict: stores KEY-VALUE pairs
- bool: holds True or False
- int, float and str: numbers and text; a str is immutable too
- लिस्ट: क्रमबद्ध संग्रह जिसे आप बदल सकते हैं; यह म्यूटेबल है
- टपल: लिस्ट जैसा, पर बनने के बाद इम्यूटेबल
- डिक्शनरी, dict: की-वैल्यू जोड़े रखती है
- bool: True या False रखता है
- int, float और str: संख्याएँ और पाठ; str भी इम्यूटेबल है
3
asked in 1 exam1 परीक्षा में पूछा गया
AEDPM (L-08) IT Department — RCF/Kapurthala, 2026OPERATORS, LOOPS AND EXCEPTIONSऑपरेटर, लूप और एक्सेप्शन
- ** raises to a power: 2 ** 3 is 8
- == tests equality; a single = assigns a value
- for iterates over a sequence; while repeats while a condition holds
- try-except handles an exception; finally runs either way
- ** घात लगाता है: 2 ** 3 का मान 8 है
- == समानता जाँचता है; एक = मान देता है
- for किसी अनुक्रम पर दोहराता है; while शर्त रहने तक दोहराता है
- try-except एक्सेप्शन संभालता है; finally हर हाल में चलता है