Skip to main content

Posts

Programming with Python Language Tutorial available in hindi and english पाइथन प्रोग्रामिंग टुटोरिअल हिंदी एवं अंग्रेजी भाषा में

 Unit -01 1. Introduction to python (पाइथन भाषा का परिचय) 2. History of Python Programming Language पाइथन प्रोग्रामिंग लैंग्वेज का इतिहास 3. Python Programming Language’s Features and Advantages पायथन प्रोग्रामिंग लैंग्वेज की प्रमुख विशेषताएं 4. Python’s Programming Language's Popularity पाइथन प्रोग्रामिंग लैंग्वेज की लोकप्रियता 5.The Future of Python Programming Language पायथन प्रोग्रामिंग लैंग्वेज का भविष्य 6. The Python Interpreter पायथन इंटरप्रेटर 7. The Python IDLE पाइथन आईडीएलई 8. Installation process of Python IDLE पायथन आईडीएलई की इंस्टालेशन प्रक्रिया 9. Dynamically typed and strongly typed features of python गतिशील रूप से टाइप और दृढ़ता से टाइप की गई भाषा पायथन 10. Basic Data Types of Python पायथन के बेसिक डेटा टाइप 11. Variables in python पायथन में वेरिएबल 12. Expressions in Python पायथन में अभिव्यक्तियां 13. Statements in Python पायथन में कथन 14. Operator's in Python पायथन में ऑपरेटर्स 15. Flow of execution of a python program पाइथन प्रोग्राम के निष्पादन का प्रवाह 16...
Recent posts

Inbuilt Functions in Python पाइथन में अंतर्निहित फ़ंक्शन्स

Python is a powerful programming language that provides many inbuilt functions to make coding simple and efficient. These functions help programmers perform common tasks like finding length, converting characters, or checking memory addresses without writing extra code. पायथन एक शक्तिशाली प्रोग्रामिंग भाषा है जो कई अंतर्निहित (inbuilt) फ़ंक्शन्स प्रदान करती है, जिससे कोडिंग आसान और प्रभावी हो जाती है। ये फ़ंक्शन प्रोग्रामर को सामान्य कार्य करने में मदद करते हैं जैसे लंबाई निकालना, अक्षरों का रूपांतरण करना या मेमोरी एड्रेस जांचना, और इसके लिए अतिरिक्त कोड लिखने की आवश्यकता नहीं होती। (a)  id()  – Unique Identifier of an Object  किसी वस्तु का अद्वितीय पहचानकर्ता The  id()  function returns the unique memory address of an object. Every variable or object in Python is stored in memory, and  id()  helps us know where exactly it is stored. id()  फ़ंक्शन किसी ऑब्जेक्ट का अद्वितीय मेमोरी एड्रेस लौटाता है। पायथन में हर वेरिएबल या ऑब्जेक्ट मेमोरी में संग्रह...

Shallow Copy and Deep Copy in Python पायथन में गहरी प्रतिलिपि और उथली प्रतिलिपि

In Python, the concepts of deep copy and shallow copy refer to how data structures, like lists, are duplicated. पायथन में, गहरी प्रतिलिपि और उथली प्रतिलिपि की अवधारणाएं संदर्भित करती हैं कि कैसे डेटा संरचनाएं, जैसे सूचियां डुप्लिकेट की जाती हैं। 1.) Shallow Copy  उथली प्रतिलिपि  :-   A shallow copy in Python creates a new object, but instead of creating copies of nested objects, it copies references to those objects. This means that if the original object is modified, changes to nested objects will reflect in both the original and the shallow copy. पायथन में एक उथली प्रतिलिपि एक नई वस्तु बनाती है, लेकिन नेस्टेड वस्तुओं की प्रतियां बनाने के बजाय, यह उन वस्तुओं के संदर्भों की प्रतिलिपि बनाती है। इसका मतलब यह है कि यदि मूल वस्तु को संशोधित किया जाता है, तो नेस्टेड वस्तुओं में परिवर्तन मूल और उथली प्रतिलिपि दोनों में दिखाई देंगे। You can create a shallow copy of a list using Slicing, copy method and copy module:- आप स्लाइसिंग, कॉपी विधि और कॉपी मॉड्यूल का उपयोग करके किसी सूची...

Set in Python पायथन में सेट, Set Operations सेट ऑपरेशन , Set Functions and Methods सेट फंक्शन एवं मेथड

In Python, a set is an unordered collection of unique elements. Sets are useful when we need to eliminate duplicates and perform common set operations like unions, intersections, and differences. We can create a set by using curly braces {} or the set() function but we cannot create an empty set using {}, as it creates an empty dictionary. Instead, we can use set(). पायथन में, एक सेट अद्वितीय तत्वों का एक अव्यवस्थित संग्रह है। सेट तब उपयोगी होते हैं जब हमें डुप्लिकेट को खत्म करने और यूनियनों, इंटरसेक्शन और अंतर जैसे सामान्य सेट ऑपरेशन करने की आवश्यकता होती है। हम कर्ली ब्रेसिज़ {} या set() फ़ंक्शन का उपयोग करके एक सेट बना सकते हैं लेकिन हम {} का उपयोग करके एक खाली सेट नहीं बना सकते, क्योंकि यह एक खाली डिक्शनरी बनाता है। इसके स्थान पर हम set() का उपयोग कर सकते है। Creating a Set सेट तैयार करना :- my_set = {1, 2, 3} # Using the set() function ( set() फ़ंक्शन का उपयोग करना ) my_set2 = set([1, 2, 3, 4, 5]) Set Operations/Methods सेट ऑपरेशन/ मेथड:-   1. Union (| or union()):-  Retu...

Dictionary in Python पायथन में डिक्शनरी, Dictionary Operations डिक्शनरी ऑपरेशन , Dictionary functions and methods डिक्शनरी फंक्शन और विधियाँ

In Python, a dictionary is a collection of key-value pairs. Dictionaries are useful for storing and managing data that is organized by a unique identifier or "key," such as names and values associated with them. Dictionaries in Python are mutable, efficient, and suitable for a variety of operations, especially for managing data with unique keys. पायथन में, एक शब्दकोश (डिक्शनरी) कुंजी-मूल्य युग्मों का एक संग्रह है। शब्दकोश डेटा को संग्रहीत करने और प्रबंधित करने के लिए उपयोगी होते हैं जो एक अद्वितीय पहचानकर्ता या "कुंजी" द्वारा व्यवस्थित होते हैं, जैसे कि उनके साथ जुड़े नाम और मान। पायथन में शब्दकोश परिवर्तनशील, कुशल और विभिन्न प्रकार के संचालन के लिए उपयुक्त हैं, विशेष रूप से अद्वितीय कुंजियों वाले डेटा को प्रबंधित करने के लिए। Syntax:- Creating a Dictionary  शब्दकोश तैयार करना :-  We can create a dictionary using curly braces {}  हम मंझला कोष्टक {} का उपयोग करके शब्दकोश बना सकते हैं my_dict = { "name": "Alice", "age": 25, "city...

List in Python पायथन में लिस्ट, List operations लिस्ट ऑपरेशन, List functions and methods लिस्ट फंक्शनस एवं मेथड्स

In Python, a list is a mutable, ordered collection of elements. Lists are one of the most commonly used data structures in Python because they can store elements of various data types and allow for flexible operations such as adding, removing, and modifying elements. Lists are defined by enclosing elements in square brackets [], with elements separated by commas. पायथन में, लिस्ट (सूची) तत्वों का एक परिवर्तनशील, क्रमबद्ध संग्रह है। पायथन में सूचियाँ सबसे अधिक इस्तेमाल की जाने वाली डेटा संरचनाओं में से एक हैं क्योंकि वे विभिन्न डेटा प्रकारों के तत्वों को संग्रहीत कर सकती हैं और तत्वों को जोड़ने, हटाने और संशोधित करने जैसे लचीले संचालन की अनुमति देती हैं। सूचियों को वर्गाकार कोष्ठकों [] में तत्वों को संलग्न करके परिभाषित किया जाता है, जिसमें तत्वों को अल्पविराम से अलग किया जाता है। Syntax:- # Creating a list लिस्ट तैयार करना  my_list = [1, 2, 3, "apple", [4, 5]] # Lists can be nested लिस्ट को नेस्ट किया जा सकता है  matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] print(matrix[1]) # O...

tuple in python पायथन में टपल, tuple operations टपल ऑपरेशन , tuple functions and methods टपल फ़ंक्शन और विधियाँ

In Python, a tuple is a collection of ordered, immutable elements. Tuples are similar to lists, but unlike lists, once a tuple is created, its elements cannot be changed. Tuples are defined by placing a sequence of elements separated by commas inside parentheses (). पायथन में, टपल क्रमबद्ध, अपरिवर्तनीय तत्वों का एक संग्रह है। टपल्स सूचियों के समान हैं, लेकिन सूचियों के विपरीत, एक बार टपल बन जाने के बाद, इसके तत्वों को बदला नहीं जा सकता है। टपल्स को कोष्ठक () के अंदर अल्पविराम द्वारा अलग किए गए तत्वों के अनुक्रम को रखकर परिभाषित किया गया है। # Creating a tuple टपल तैयार करना :- my_tuple = (1, 2, 3, "apple", [4, 5]) # Single-element tuple (note the trailing comma) एकल-तत्व टपल (अंतिम अल्पविराम पर ध्यान दें) single_element_tuple = (10,) # Tuples can be nested ट्पल्स को नेस्ट किया जा सकता है nested_tuple = (1, (2, 3), [4, 5]) tuple operations टपल ऑपरेशन:- 1. Concatenation जोड़ना:-  We can concatenate two or more tuples using the + operator. हम + ऑपरेटर का उपयोग करके दो या दो से अ...