2/22/23
-20
0.5
"Hello world!"
True
["Audi", "BMW", "Mercedes"]
("SUV", "saloon/sedan", "hatchback")
{"make": "Suzuki", "model": "Alto"}
{1, 2, 3, 5, 7}
Operation | Operator |
---|---|
Addition | + |
Subtraction | - |
Multiplication | * |
Division | / |
Integer division/floored quotient | // |
Modulus/remainder | % |
Exponentiation | ** |
Operation | Operator |
---|---|
Concatenation | + |
Replication | * |
Think of variables as containers for data.
Functions in Python are similar to Mathematical functions in that they take inputs and transform them to an output.
Some of the built-in functions include: type
, print
, input
, int
, str
, float
, dict
, list
, tuple
, set
You can get access to other functions by importing them from the standard library or other installed packages