Example
If-else Statement
The else block executes when if condition is not met. Two possible paths.
Showing 201–210 of 237
Example
The else block executes when if condition is not met. Two possible paths.
Example
Conditional if statement allows executing code only when condition is met.
Example
Searching, replacing and splitting text. Advanced string manipulation methods.
Example
Useful methods for working with text: changing case, removing whitespace.
Example
Accessing individual characters and text fragments. Zero-based indexing in Python.
Example
How to create text and join it in Python. Basics of working with strings.
Example
Order of operations in Python. Parentheses, exponents, multiplication, division, addition.
Example
Operator ** for exponentiation and calculating roots in Python.
Example
Operator // for floor division and % for remainder (modulo) in Python.
Example
Python allows changing variable type during program execution. This is dynamic typing.