Test Your Knowledge: Quiz

  1. What three things are required in a C-like language but omitted in Python?

  2. How is a statement normally terminated in Python?

  3. How are the statements in a nested block of code normally associated in Python?

  4. How can you make a single statement span multiple lines?

  5. How can you code a compound statement on a single line?

  6. Is there any valid reason to type a semicolon at the end of a statement in Python?

  7. What is a try statement for?

  8. What is the most common coding mistake among Python beginners?