Matplotlib Tutorials

Matplotlib offers a structured learning path for Python data visualization. Our tutorials cover various plot types, customization options, and best practices, suitable for both beginner and intermediate data scientists. With free labs and practical examples, you'll gain hands - on experience in creating informative and attractive visualizations. Our data visualization playground allows you to experiment with Matplotlib functions and see immediate graphical results.

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
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 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
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
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
Message Authentication with HMAC in Cryptography

Message Authentication with HMAC in Cryptography

In this lab, you will learn how to ensure message integrity and authenticity using HMAC (Hash-based Message Authentication Code) with OpenSSL and Python.
CybersecurityLinuxPython
Manage Dictionaries in Python

Manage Dictionaries in Python

In this lab, you will gain hands-on experience managing dictionaries in Python. Dictionaries are essential data structures for storing data in key-value pairs. You will learn how to create and inspect dictionaries, access and modify elements, add and delete elements, and explore dictionary view objects.
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
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
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
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
Manipulate Lists in Python

Manipulate Lists in Python

In this lab, you will gain hands-on experience manipulating lists in Python, a fundamental data structure. You will learn to create, access, add, remove, modify, sort, query, and nest lists. By the end, you'll effectively work with lists to manage and process data in your Python programs.
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
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
Import Modules and Packages in Python

Import Modules and Packages in Python

In this lab, you will learn how to import and use modules and packages in Python. We will explore Python modules with pydoc, import modules using import, import specific objects with from...import, and understand Python packages. This lab provides hands-on practice for effective code organization and reuse.
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
Conditional Statements in Python

Conditional Statements in Python

In this lab, you will learn how to control the flow of your Python programs using conditional statements. We will begin by understanding the concept of sequential program execution and then introduce conditional logic as a way to enable programs to make decisions. You will implement single, dual, and multi-branch logic using if, if-else, and if-elif-else statements. The lab will also cover nested if statements, the pass statement, and introduce the match-case statement (Python 3.10+). By the end of this lab, you will be able to write Python code that executes different blocks of instructions based on specific conditions.
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
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 175
  • Next