bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Python

Python

Files, Modules, and the Standard Library

Work with files, import code cleanly, and use Python’s built-in modules without guessing.

Lesson 1

Python File Open

File handling is an important part of any web application.

Read lesson →Loading…
Lesson 2

Python Python Built-in Modules

This page lists the built-in modules that ship with the Python 3.13 Standard Library.

Read lesson →Loading…
Lesson 3

How to Remove Duplicates From a Python List

First we have a List that contains duplicates:

Read lesson →Loading…
Lesson 4

Python File Open

Assume we have the following file, located in the same folder as Python:

Read lesson →Loading…
Lesson 5

Python Random Module

Python has a built-in module that you can use to make random numbers.

Read lesson →Loading…
Lesson 6

How to Reverse a String in Python

There is no built-in function to reverse a String in Python.

Read lesson →Loading…
Lesson 7

Python File Write

To write to an existing file, you must add a parameter to the open() function:

Read lesson →Loading…
Lesson 8

Python Requests Module

Make a request to a web page, and print the response text:

Read lesson →Loading…
Lesson 9

How to Add Two Numbers in Python

Use the + operator to add two numbers:

Read lesson →Loading…
Lesson 10

Python Delete File

To delete a file, you must import the OS module, and run its os.remove() function:

Read lesson →Loading…
Lesson 11

Python statistics Module

Python has a built-in module that you can use to calculate mathematical statistics of numeric data.

Read lesson →Loading…
Lesson 12

Python math Module

Python has a built-in module that you can use for mathematical tasks.

Read lesson →Loading…
Lesson 13

Python cmath Module

Python has a built-in module that you can use for mathematical tasks for complex numbers.

Read lesson →Loading…