Increment & Decrement Division Python converts all ints to floats before performing division Round
All posts by
Variables
float / double Python’s built-in float type has double precision (it’s the same as a double in C)
.Using Strings-Basics
Strings can use single or double quotes Join strings Multiline strings using triple quotes Use triple single quotes or double quotes to start and end a multiline string. Line breaks will occur for the linebreaks in the string you enter. Joining strings Use the period character ‘+’ You can also use += Length
.Comments
Comment out multiple lines There is no block commenting in Python (an equivalent for /* */ in C). In VSCode, select the lines and use ‘CTRL’+’/’ to comment and uncomment the block Comment blocks using triple quotes Not officially comments according to Python spec, but often used as a handy way to create multiline comments:
Output to console
Clear screen