Python sample question with answer 37

Question:
According to PEP 8, Python variable names should be written in which style?

  1. mixedCase (Example: variableName)
  2. lower_case_with_underscores (Example: variable_name)
  3. UPPERCASE (Example: VARIABLENAME)
  4. lowercase (Example: variablename)
Answer:
B - is the correct answer