Python Code Tutorials


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/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/implement-2fa-in-python.jpg
How to Implement 2FA in Python

Learn how to enhance security with Python by implementing Two-Factor Authentication (2FA) using TOTP and HOTP algorithms. This comprehensive guide covers everything from generating OTPs with pyotp to integrating with authenticator apps.

articles/cracking-caesar-cipher-in-python.jpg
How to Crack the Caesar Cipher in Python

Unlock the secrets of the Caesar cipher with our Python tutorial. Learn the ins and outs of one of history's oldest codes and how to break it using modern computing power.

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/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/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/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.

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/create-a-blog-app-using-django.jpg
How to Make a Blog using Django in Python

Learn how to build a simple blog from scratch using the Django framework and Bootstrap styling in Python.

articles/make-malware-persistent-in-python.jpg
How to Make Malware Persistent in Python

Learn how to achieve persistence for malware using Python, ensuring it remains active after system reboots. This tutorial guides you through implementing persistence techniques on both Windows and Linux systems, from modifying registry settings to setting up cron jobs.

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/cartoonify-images-in-python_compressed.jpg
How to Cartoonify Images in Python

Learn how to cartoonify images using Python and OpenCV in this step-by-step tutorial. Transform regular photos into cartoon-like visuals with just a few lines of code. Perfect for beginners in computer vision.

articles/crafting-packets-scapy.png
Crafting Dummy Packets with Scapy Using Python

Discover how to create custom dummy packets using Python's Scapy library to simulate network traffic, test firewall rules, and monitor latency. This tutorial covers practical examples for TCP, ICMP, and UDP packets, with real-world applications in network performance monitoring.

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/make-a-hangman-game-in-python.jpg
How to Make a Hangman Game in Python

Learn how to make a hangman game to guess a word in Python using the standard library.