Python Code Tutorials


articles/make-a-snake-game-using-pygame-in-python.jpg
How to Make a Snake Game in Python

Learn how to build a classic snake game using Pygame in Python. This detailed step-by-step tutorial explains how to initialize Pygame, generate food for the snake, draw game objects, update the snake's position, handle user input, and manage the game loop. Suitable for beginner to intermediate Python programmers intere

articles/make-a-checkers-game-with-pygame-in-python.jpg
How to Make a Checkers Game with Pygame in Python

Learn how to build a checkers game from scratch with the help of Pygame library in Python.

articles/make-an-image-editor-with-tkinter-in-python.jpg
How to Make an Image Editor in Python

Learn how you can build a simple GUI image editor with Tkinter, pillow, ttkbootstrap libraries in Python

articles/speech-recognition-in-python_compressed.jpg
Speech Recognition in Python

Learn how to do Automatic Speech Recognition (ASR) using APIs and/or directly performing Whisper inference on Transformers in Python

articles/gui-language-translator-googletrans-tkinter-in-python.jpg
How to Build a GUI Language Translator App in Python

Learn how to build a GUI language translator app with tkinter, googletrans, pyttsx3, ttkbootstrap, and pyperclip libraries in Python.

articles/real-time-object-tracking-yolov8_compressed.jpg
Real-time Object Tracking with OpenCV and YOLOv8 in Python

Learn how to perform real-time object tracking with the DeepSORT algorithm and YOLOv8 using the OpenCV library in Python.

articles/how-to-use-the-argparse-module-in-python.jpg
How to Use the Argparse Module in Python

Master the argparse module in Python with this comprehensive tutorial, covering command-line applications, argument parsing, real-world examples, integration with other libraries, and best practices to create user-friendly interfaces and powerful command-line tools.

articles/generating-similar-images-depth-estimation-stable-diffusion_compressed_gopQl8K.jpg
Image to Image Generation with Stable Diffusion in Python

Learn how you can generate similar images with depth estimation (depth2img) using stable diffusion with huggingface diffusers and transformers libraries in Python.

articles/build-a-tic-tac-toe-game-using-pygame-in-python.jpg
How to Build a Tic Tac Toe Game in Python

Learn how to build a tic tac toe game using the Pygame library from scratch in Python.

articles/generate-images-from-text-stable-diffusion-in-python_xnubOl0.jpg
How to Generate Images from Text using Stable Diffusion in Python

Learn how to perform text-to-image using stable diffusion models with the help of huggingface transformers and diffusers libraries in Python.

articles/create-a-restful-api-with-flask-in-python.jpg
How to Create a RESTful API with Flask in Python

Learn to build a RESTful API using Flask, Python, and SQLite, covering setup, CRUD operations, database integration, and best practices for code organization.

articles/make-a-tetris-game-with-pygame-in-python.jpg
How to Make a Tetris Game using PyGame in Python

Master the creation of a classic Tetris game using Pygame with this step-by-step tutorial. Learn to handle game logic, user input, and rendering while building your own customizable Tetris clone in Python.

articles/finetuning-vit-for-image-classification-using-transformers.jpg
How to Fine Tune ViT for Image Classification using Transformers in Python

Learn how to fine tune the Vision Transformer (ViT) model for the image classification task using the Huggingface Transformers, evaluate, and datasets libraries in Python.

articles/hangman-gui-game-with-pygame-in-python.jpg
How to Create a Hangman Game using PyGame in Python

Learn how to use PyGame to create a Hangman word guessing game in Python.

articles/news-api-drf-python.jpg
How to Build a News Site API with Django Rest Framework in Python

Learn how to create a news site API from scratch using the Django and Django Rest Framework libraries in Python.

articles/accounting-app-using-django-in-python.jpg
How to Make an Accounting App with Django in Python

Learn how to build an accounting application using the Django framework and Bootstrap in Python.