Python Review

Concepts to prepare for HW1

  • strings in python

    • types of quotes

    • challenge of printing strings and numbers

    • empty strings

    • comparing strings

    • string indexing

  • string methods

    • strip

    • split to make a string into a list

  • creating boolean variables

  • if/elif/else review on strings

  • working with lists of strings

    • getting length

    • appending to a list

    • looping over single lists

  • function definition review

    • def blocks

    • parameters

    • return vs print

  • assert statements

Next: Working with lists that pair up

Last updated