-
Avg of list
-
Most frequent element in list
-
Verify if string fits rules: length, upper/lower, ...
-
Return a slice of the list
-
Correct sentence (*)
Grid questions will hit both nested loops and nested lists
- Some symbol on the grid that unifies its surroundings in a way or a calculation
- Maybe something that navigates trough a 2d grid
- ??
- type()
- We can cast from one type to another
- Something where the difference between float and int matters
- Even or Odd
- And / Or operator
- Check if both conditions
- the in and not in operators can be used on strings
- chars are just strings of length 1
- strings are immutable sequences of characters.
- strings can be indexed and sliced
- strings may have escape sequences
- Use if, else and elif
- Ordered
- Mutable
- Support for slicing
- Support for indexing
- Support for negative indexing
- Nesting and 2d lists
- support for membership tests
- Confusing aliases of a list with copies
- break
- continue
- can be nested
- enumerate can be useful
- loop over ranges to do something a number of times
- can do while loops
- Modifying the loop collection or iterable during iteration
- Changing the loop variable in the loop body doesn’t have an effect on the original data
-immutable