Example
Creating Tuples
Tuples are immutable lists. Once created, they cannot be modified.
Showing 31–40 of 60
Example
Tuples are immutable lists. Once created, they cannot be modified.
Example
Methods sort() and reverse() for ordering list elements.
Example
Adding and removing elements from list. Methods append, insert, pop and remove.
Example
Accessing list elements by index. Changing and removing elements.
Example
Lists store multiple elements in a specific order. Basics of working with lists.
Example
Combining conditions with logical operators and, or and not.
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.