Python Code Tutorials


articles/tokenization-stemming-and-lemmatization-with-python.jpg
Tokenization, Stemming, and Lemmatization in Python

This article discusses the preprocessing steps of tokenization, stemming, and lemmatization in natural language processing. It explains the importance of formatting raw text data and provides examples of code in Python for each procedure.

articles/make-a-fork-bomb-in-python_compressed.jpg
How to Create A Fork Bomb in Python

Learn how to build a fork bomb with os and multiprocessing modules in Python, a program that consumes the target computer's resources and potentially freezes it.

articles/visual-question-answering-with-transformers_compressed.jpg
Visual Question Answering with Transformers in Python

Learn the current state-of-the-art models (such as BLIP, GIT, and BLIP2) for visual question answering with huggingface transformers library in Python.

articles/checking-password-strength-in-python.jpg
How to Check Password Strength with Python

Learn how to check password strength in Python using the zxcvbn library. This guide walks you through installing zxcvbn, importing necessary libraries, and creating functions to test single and multiple passwords. You'll securely input passwords and receive feedback on their strength.

articles/create-video-from-images-in-python.jpg
How to Create Videos from Images in Python

Learn how to create videos from image arrays using Python and OpenCV, focusing on timelapses. Setting up OpenCV, using argparse for input parameters, and processing images in batches. Key steps include configuring the VideoWriter object, iterating over images to build the video, and tips for efficient memory use.

articles/recommender-systems-using-association-rules-in-python.jpg
Recommender Systems using Association Rules Mining in Python

Build a recommender system for market basket analysis With association rule mining with the Online Retail dataset in Python.

articles/automate-server-management-veesp-python.PNG
How to Automate your VPS or Dedicated Server Management in Python

Learning how you can automate routine tasks and manage servers on your Veesp Virtual Private Servers or dedicated servers in Python using Web APIs and requests library.

articles/handling-files-in-python-using-os-module.jpg
How to Manage Money with Python

Explore how Python, a versatile and user-friendly programming language, enhances money management through budgeting, expense tracking, and investment analysis. This guide delves into Python's financial tools and libraries for effective financial planning and automation, ensuring secure and informed financial decisions.

articles/imbalancedata_yVSlYfN.png
Imbalance Learning With Imblearn and Smote Variants Libraries in Python

Learn how to overcome imbalance related problems by either undersampling or oversampling the dataset using different types and variants of smote in addition to the use of the Imblearn library in Python.

articles/credit-card-validation-with-python.jpg
How to Validate Credit Card Numbers in Python

Learn to validate credit card numbers using the Luhn algorithm in Python. This tutorial covers the algorithm steps, card type detection, and handling multiple card numbers from a file.

articles/breakout-game-pygame-in-python.jpg
How to Build a Breakout Game with PyGame in Python

Learn to build a classic Breakout game in Python using Pygame. This tutorial covers setting up the game window, creating the paddle, ball, and bricks, adding ball bouncing logic, updating scores, and incorporating sounds.

articles/generating-fake-user-data-in-python.jpg
How to Generate Fake User Data in Python

Master Python's Faker library to generate and manage fake user data. Ideal for privacy protection and software testing, this tutorial covers creating a versatile program for realistic data generation, including saving options in CSV or TXT formats.

articles/fraud-transactions-detector-with-kafka-python.jpg
Detecting Fraudulent Transactions in a Streaming App using Kafka in Python

Learn how to detect and filter fraudulent transactions in a streaming application using Apache Kafka with Python API.

articles/rag-chatbot.png
Building a Full-Stack RAG Chatbot with FastAPI, OpenAI, and Streamlit

Learn to build a full-stack RAG chatbot with FastAPI, OpenAI, and Streamlit. Step-by-step guide to create a chatbot answering questions from uploaded PDFs.

articles/seeing-hidden-wifi-networks-with-scapy-in-python.jpg
How to View Hidden Wi-Fi Networks in Python

Discover how to uncover hidden Wi-Fi networks using Python and Scapy. This tutorial debunks the security myth of hidden SSIDs and guides you through setting up your adapter in monitor mode to detect and log hidden networks, emphasizing practical network analysis and security assessment.

articles/voice-recorder-gui-app-using-tkinter-in-python.jpg
How to Build a GUI Voice Recorder App in Python

Learn how to build a voice recorder GUI app using Tkinter and sounddevice libraries in Python.