Explore Python methods with code snippets in this thread. Let's dive into three types:
Instance
Class
Static
Unravel the magic 🧵👇 1. Instance methods:
These methods are bound to the instance(object) of the class.
Used to access/modify the object state. If we use instance variables inside a method, such methods are called instance methods. It must have a self parameter to refer to the current object
Nov 1, 2023 • 5 tweets • 2 min read
Decorators in Python (with code snippets)
Decorators in Python allow us to modify the functions, arguments and results without touching the actual code of the function
In this thread, you'll learn about decorators with examples. Follow me, @itsafiz to stay up-to-date on it🧵👇
Example 1: Add the banner to Hello World!
A simple example of decorators in Python 👇
Oct 23, 2023 • 6 tweets • 2 min read
Object Oriented Programming in Python
Methods in Python (with code snippets)
In this thread, we will discuss 3 types of methods with examples
1. Instance 2. Class 3. Static
A Thread 🧵👇 1. Instance methods:
These methods are bound to the instance(object) of the class.
Used to access/modify the object state. If we use instance variables inside a method, such methods are called instance methods. It must have a self parameter to refer to the current object
In this two-part series, we will learn all the concepts of OOP with examples.
Follow me @itsafiz to don't miss.
A Thread 🧵👇 1. Introduction to OOP
OOP is a programming paradigm that organizes code into objects, which are instances of classes. It promotes modularity, reusability, and easier maintenance of code. Let's dive in!
Aug 15, 2023 • 4 tweets • 2 min read
Build a beautiful dashboard using Python!
This dashboard is created using @streamlit and 100% Python code. No HTML and CSS.
Do you know you can pull all the Spotify music data using Python for FREE? In this thread, you will learn the same.
More examples with source code 🧵👇
Example 1: List all the albums of artist ‘Birdy’
Aug 12, 2023 • 5 tweets • 2 min read
WhatsApp Data Analysis using Python
In this thread, we'll see how to export WhatsApp chat/group chat data and use it for data analysis.
First thing first, we need to export data from WhatsApp
Following these steps to export the data
Aug 10, 2023 • 12 tweets • 4 min read
Build RESTful API with FastAPI (with code snippets)
In this thread, we'll learn how to create a REST API for TODO App in Python using FastAPI. @FastAPI
A Thread 🧵👇
1. Install FastAPI
The first step is to install FastAPI using pip
Aug 9, 2023 • 7 tweets • 2 min read
Learn Image Processing using Python!
In this post, we will learn all the important concepts of image processing using Python.
Topics like Face Detection, Blurring, Rotating Images and more!
A Thread 🧵👇
Image Processing in Python #1
✅ How to grayscale images
Image Processing is a very interesting subject. We can extract useful information from images