Tuesday, June 21, 2022

Python - Table of contents

I am working my way through the Python tutorial and taking notes.

I keep my notes here for ease of access (home/work/travel).

 

I find this is the best way for me to remember and then refer back to a language.

I tend to skip stuff that makes sense to me and go into more detail on things I have trouble with.

So this is more for me than you, weary traveler.


The full W3Schools tutorial can be found here:

https://www.w3schools.com/python/default.asp

 

Table of contents


Start here

Global variables

Data types

Fun with strings and random numbers

Left, Right, and Middle string ranges

Concatenate strings

Formatting strings

Escape characters

String methods

Booleans

Lists, Tuples, Sets, and Dictionaries

Lists

Add or remove items from a list

Loop through lists

List Comprehension

Sort lists

Copy lists

Join lists

Tuples

Unpacking tuples

Add and remove items from a set

Set joins

Dictionaries

If... Else

While loops

For loops

Functions

Classes and Inheritance

Scope

Modules

Dates

Math

Regular Expressions

Error handling (try, except, else, finally)

User input

String formatting

File handling