|r||Read text||Opens a file for reading only|
|w||Write text||Opens a file for writing only|
|a||Append text||Opens a file for writing to the end of the file|
|r+||Read and Write text||Opens a file for both reading and writing|
|rb||Read binary||Opens a file for reading binary data|
|w||Write binary||Opens a file for writing binary data|
exceptstatement to handle an exception, you are said to catch an exception.
forloop and the clauses of an
ifstatement are code blocks.
returnstatement in the same code block.
A - B
cdto enter a directory.
exceptblock that is run when an exception caught.
5.75or using scientific notation:
A ∩ B
average = games/games
x x ∈ A
ifstatement, which contains another
ifstatement in one of its code blocks.
Noneis a Python literal
|>=||Greater than or equal to|
|<=||Less than or equal to|
returnkeyword to send a value back to the Python statement that called it. It has the format
A - B
x ∈ A
A Δ B
orthat prevents the second operand from being evaluated if the overall result is obvious from the value of the first operand.
A ⊂ B
A ⊃ B
tarutility that contains many files and directories.
a, b, c = 5, 10, 15
A ∪ B