Skip to content

Latest commit

 

History

History
76 lines (58 loc) · 1.54 KB

File metadata and controls

76 lines (58 loc) · 1.54 KB
  • 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

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

After this I want to do some AOC style format parsing

  • ??

Variables and Types

Notes:

  • type()
  • We can cast from one type to another

Questions

  • Something where the difference between float and int matters

Conditionals

Notes:

  • Even or Odd
  • And / Or operator

Questions:

  • Check if both conditions

Strings

Notes:

  • 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

Questions

Conditions

Notes:

  • Use if, else and elif

Lists

Notes

  • 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

Questions

Loops

Notes:

  • 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

Tuples

Notes:

-immutable