Loading lesson path
Python
Work with files, import code cleanly, and use Python’s built-in modules without guessing.
File handling is an important part of any web application.
This page lists the built-in modules that ship with the Python 3.13 Standard Library.
First we have a List that contains duplicates:
Assume we have the following file, located in the same folder as Python:
Python has a built-in module that you can use to make random numbers.
There is no built-in function to reverse a String in Python.
To write to an existing file, you must add a parameter to the open() function:
Make a request to a web page, and print the response text:
Use the + operator to add two numbers:
To delete a file, you must import the OS module, and run its os.remove() function:
Python has a built-in module that you can use to calculate mathematical statistics of numeric data.
Python has a built-in module that you can use for mathematical tasks.
Python has a built-in module that you can use for mathematical tasks for complex numbers.