Python
19 / 19 posts
Python Basic
py --version python --version # \n : Newline # \t : Tab # \\ : Backslash # \" : Double quote # \' : Single quot print("Hello, World!\nThis is a new line.")…
List,Tuple,Set and Dictionary in Python
🔹 List (सूची) 📌 Definition : List ek aisi collection hai jo ordered (क्रमबद्ध) aur mutable (बदलने योग्य) होती है. Ismein duplicate values allowed hain. m…
CLASSES in Python
ऑब्जेक्ट ओरिएंटेड प्रोग्रामिंग (Object-Oriented Programming या OOP) एक तरीका है प्रोग्राम लिखने का, जिसमें हम क्लास (class) और ऑब्जेक्ट (object) का इस्तेमा…
DateTime in Python
In Python, the datetime module provides classes for manipulating dates and times. It offers several functions and methods to create, manipulate, and format…
Functions and Modules in Python
def Grreting(name): print("Hello, " + name + "! Welcome to Python programming.") def main(): user_name = input("Please enter your name: ") Grreting(user_na…
Addition, subtraction, multiplication, and dot product using NumPy in Python:
Here are some examples of addition, subtraction, multiplication, and dot product using NumPy in Python: import numpy as np # Create two arrays a = np.array…
Matplotlib Pyplot for Visualisation
Pyplot Most of the Matplotlib utilities lies under the pyplot submodule, and are usually imported under the plt alias: import matpl…
Seaborn
Seaborn is a powerful and easy-to-use data visualization library in Python built on top of Matplotlib. It's great for creating attractive and informative s…
Making API Calls in Python
APIs (Application Programming Interfaces) are the bridges that allow different software systems to communicate with each other. pip install requests import…
MongoDB connect with Python
Python needs a MongoDB driver to access the MongoDB database. We will use the MongoDB driver "PyMongo". # Creating a Database import pymongo myclient = pym…
EasyDict dictionaries
EasyDict is a subclass of Python's built-in dictionary that allows accessing dictionary keys as attributes like JavaScript object. pip install easydict fro…
Error & Exception Handling in Python
Error और Exception Handling का मतलब है — प्रोग्राम में चलने के दौरान जो गलतियाँ (errors) आती हैं, उन्हें पहचानना और उनका सही तरीके से समाधान करना, ताकि प्र…
Python String format()/f-string Method
Python में format() / f-string method का उपयोग Strings में वैल्यूज़ को dynamic तरीके से insert करने के लिए किया जाता है। यह एक बहुत ही powerful और readable…
Working with JSON Data in Python (Using APIs and Built-in JSON Module)
इस टॉपिक में हम Python में JSON (JavaScript Object Notation) के साथ कैसे काम करते हैं, ये सीखते हैं। JSON एक डेटा फॉर्मेट है जो डेटा को store और transfer क…
File Handling(create, read, write, and delete files etc.)
File Handling in Python allows us to create, read, write, and delete files . It's an essential feature when working with data that needs to be stored perma…
Advance Python Concept
The @property decorator in Python is used to make a method behave like an attribute . It allows you to define getters, setters, and deleters in an elegant …
Static Methods and Class Methods in Python
🧠 First, the Basics: In Python, there are 3 main types of methods inside a class: Instance Method → Works with object (instance) Class Method → Works with…
Magic (Dunder) Methods in Python
Magic methods (also known as dunder methods , short for double underscore ) in Python are special methods that have double underscores before and after the…
Map, Filter, and Reduce in Python
Programming me kabhi kabhi aisa hota hai ki tumhe list ke saare elements pe ek kaam karna ho , ya phir kuch elements ko condition ke hisaab se nikalna ho ,…