Python Tutorials

Our Python tutorials provide a comprehensive curriculum for learning this versatile programming language. They cover Python basics, advanced concepts, and popular libraries, suitable for both beginners and experienced developers. Through hands - on labs and real - world code examples, you'll gain practical Python programming experience. Our interactive Python playground allows you to test different Python features and see immediate results.

Matplotlib Basic Line Plots

Matplotlib Basic Line Plots

In this lab, you will learn the fundamentals of creating a basic line plot using Matplotlib. You will prepare data, plot it, add labels to the axes, and save the final plot as an image file.
Python
PEP 8 Code Style in Python

PEP 8 Code Style in Python

In this lab, you will learn how to apply the PEP 8 style guide to your Python code. PEP 8 provides recommendations for writing readable and consistent Python code, covering indentation, line length, spacing, and naming conventions. You will practice implementing guidelines, explore rules, and use autopep8 for automatic formatting.
Python
Create a URL Shortener with Python Flask

Create a URL Shortener with Python Flask

In this project, we will learn how to create a URL shortener using Python and Flask. A URL shortener is a tool that takes a long URL and converts it into a shorter, more manageable URL. This can be useful for sharing links on social media or in emails, as well as making long URLs more user-friendly.
Python
How to clean up virtual environments

How to clean up virtual environments

Efficiently manage and clean up Python virtual environments with expert techniques, optimize disk space, and streamline development workflow for better project management
Python
How to add multiple argparse arguments

How to add multiple argparse arguments

Learn how to efficiently add and parse multiple command-line arguments in Python using the powerful argparse module for flexible script configuration
Python
Python Development Tools

Python Development Tools

In this lab, you will explore various tools for Python development, including the standard interactive mode, IPython for enhanced interaction, Vim for script writing, and IDLE for integrated development. Gain practical experience with different Python development workflows.
Python
Handle Exceptions with try except in Python

Handle Exceptions with try except in Python

In this lab, you will learn how to effectively handle exceptions in Python using the `try...except` statement. We will explore how to catch specific exceptions like `ValueError`, handle multiple exception types, and execute code regardless of whether an exception occurred using `else` and `finally` blocks. You will also learn how to raise custom exceptions to signal specific error conditions in your code. Through hands-on exercises, you will gain practical experience in writing robust and error-tolerant Python programs.
Python
Add Comments in Python

Add Comments in Python

In this lab, you will learn the importance and practical application of comments in Python programming. Comments are essential for making your code understandable to humans, which is crucial for maintenance and collaboration, especially as programs grow in complexity. You will explore different types of comments and understand how to use them effectively.
Python
Documenting Python Functions with Docstrings

Documenting Python Functions with Docstrings

In this lab, you will learn the importance of documenting your Python code using docstrings. We will explore how to access existing docstrings for built-in functions using the help() function and the __doc__ attribute. Furthermore, you will gain practical experience in writing your own docstrings for custom functions and verifying their accessibility using the help() function, making your code more understandable and maintainable.
Python
Define and Use Functions in Python

Define and Use Functions in Python

In this lab, you will learn how to define and use functions in Python. Functions are essential for organizing code and promoting reusability. You will begin by understanding the concept of functions and exploring Python's built-in functions, learning how to call them with parameters and observe their output. Following the exploration of built-in functions, you will learn how to define your own simple functions. Finally, you will practice calling these user-defined functions to execute the code blocks they contain, solidifying your understanding of function creation and usage in Python.
Python
Handle Input and Output in Python

Handle Input and Output in Python

In this lab, you will learn the fundamental concepts of handling input and output in Python. We will explore how to display information to the console using the print() function, including controlling separators between multiple arguments. Furthermore, you will gain practical experience in obtaining user input from the keyboard, writing data to files, and reading data back from files, covering essential skills for interacting with external data sources in your Python programs.
Python
Build URL Shortener with Flask MySQL

Build URL Shortener with Flask MySQL

This project guides you through creating a simple URL shortener service using Flask and MySQL. You'll learn to set up a database, design a web interface, and implement functionality to shorten URLs, search for URLs by tags, and view analytics. The project is beginner-friendly and offers a comprehensive insight into web development with Python and database management.
HTMLPythonMySQLCSS
How to add time in Python datetime

How to add time in Python datetime

Learn efficient techniques to add time in Python datetime, explore timedelta methods, and perform precise time calculations with practical examples and best practices.
Python
Explore Special Methods in Python Classes

Explore Special Methods in Python Classes

In this lab, you will delve into the fascinating world of Python's special methods, often referred to as "dunder" methods. You will gain a practical understanding of how these methods influence the behavior of your classes and objects, exploring __new__, __del__, __slots__, and __call__.
Python
Building Flask REST API with SQLite

Building Flask REST API with SQLite

In this project, we will learn how to build a REST API in Flask using SQLite as the database. We will start by creating a sample SQLite database and populating it with some data. Then, we will build a Flask application with endpoints to perform CRUD (Create, Read, Update, Delete) operations on the data in the SQLite database.
Python
How to deactivate Python venv

How to deactivate Python venv

Learn essential techniques to deactivate Python virtual environments safely and efficiently, manage development workflows, and switch between project environments seamlessly.
Python
Define Classes and Objects in Python

Define Classes and Objects in Python

In this lab, you will learn the fundamental concepts of Object-Oriented Programming (OOP) in Python. We will explore how to define classes, which serve as blueprints for creating objects, and understand the relationship between classes and objects. You will then gain practical experience by creating and using instances of your defined classes. The lab will guide you through initializing objects with the __init__ method to set their initial state and customizing their string representation using the __repr__ method for better debugging and readability.
Python
How to pass arguments in Python multiprocessing

How to pass arguments in Python multiprocessing

Learn efficient techniques for passing arguments in Python multiprocessing, explore practical methods to handle complex parallel processing scenarios and optimize performance.
Python
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 175
  • Next