Variables & Keywords Exercises

  1. Variables
    • With your neighbor, come up with three reasons a variable name/identifier can be invalid. Provide an example for each one:
  2. Keywords
    • Python 3 (as of version 3.9.6) has 35 keywords. We will be covering the underlined ones in this course. Look-up 3 keywords that we're going to use this semester and explain what how they're used:

      False None True and as assert async await break class continue def del elif else except finally for from global if import in is lambda nonlocal not or pass raise return try while with yield

      Official list HERE or by executing:
      import keyword
      print( keyword.kwlist )