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.

Use VS Code for Python Development

In this lab, you will learn how to use Visual Studio Code (VS Code) for Python development. We will explore the VS Code interface, practice using Python in interactive mode in the terminal, and create and run a Python script, solidifying your understanding of the development workflow.
Python

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

Explore 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

Reverse Shell to Control Multiple Targets

This lab guides you through creating a Python reverse shell for pentesting and secure remote system management.
Python

How to filter out non-alphanumeric characters from Python strings

Learn how to effectively remove non-alphanumeric characters from Python strings, enabling you to clean and process text data efficiently in your Python projects.
Python

How to use re.findall() in Python to find all matching substrings

Discover how to leverage the powerful re.findall() function in Python to efficiently extract all matching substrings from text. Enhance your Python programming skills and master text processing techniques.
Python

How to create inline functions in Python

Learn to create efficient inline functions in Python using lambda expressions, explore advanced techniques, and improve your functional programming skills with concise code solutions.
Python

How to find common elements in two Python lists

Discover effective techniques to identify common elements between two Python lists, with practical applications and examples. Learn how to leverage Python's built-in functions and methods for efficient list manipulation.
Python

How to resolve import errors in Python

Explore effective techniques to troubleshoot and resolve common import errors in your Python projects, ensuring smooth code execution and improved productivity.
Python

How to format the hexadecimal output in Python

Explore how to effectively format hexadecimal output in your Python programs. Learn the basics of hexadecimal and discover practical applications for this powerful numerical representation.
Python

Building a Port Scanner with Python

In this lab, we will develop a server port scanner using Python to detect open ports on a target server. This tool is crucial for both system administrators, who use it to verify security policies, and potential attackers, who use it to identify operational network services on a host. Our journey will cover the essential aspects of port scanning, including its methodology and implications. We'll delve into creating a simple yet effective port scanner leveraging Python's capabilities, focusing on a multi-threaded approach to enhance efficiency and performance.
Python

How to replace multiple whitespaces in a Python string

Learn how to efficiently replace multiple whitespaces in a Python string using various techniques. Discover practical examples and use cases for this common programming task.
Python

How to efficiently group a Python list based on a given function

Learn how to efficiently group a Python list based on a given function. Discover built-in methods and advanced techniques to streamline your list grouping process.
Python

How to resolve ValueError: too many values to unpack

Discover how to resolve the "ValueError: too many values to unpack" error in Python programming. Learn practical solutions to diagnose and fix this common issue.
Python

Cracking Website Passwords Using Python

In this lab, you'll learn how to crack website passwords using Python. You'll explore a target website, create a password dictionary, write a password cracking script, and run the script. Finally, you'll learn how to improve password security.
PythonLinux

How to resolve 'NameError: name 'json' is not defined' in Python

Discover how to fix the 'NameError: name 'json' is not defined' issue in your Python code. Learn the proper way to import the JSON module and avoid this common error.
Python

How to determine grade based on marks using Python if-elif-else

Discover how to use Python's if-elif-else statements to create a grading system based on student marks. Learn practical applications and examples for this useful programming technique.
Python

How to wait for a Python thread to finish

Learn how to properly wait for Python threads to complete their tasks, ensuring your program's synchronization and reliability. Discover practical techniques for efficient thread handling.
Python
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 205
  • Next