![]() ![]() |
Conceptual Review (page 2 of 55) |
Python syntax is similar to English language statements, which makes it relatively easy to learn. Python's flexible syntax also allows developers to write programs with fewer lines of code than some other programming languages. Similar to indenting paragraphs in the English language, Python relies on indentation (spaces or tabs) to define the scope of loops, functions and conditionals.
When the Python interpreter does not understand a statement, it throws a traceback message. Python's traceback messages provide a wealth of information to help us diagnose and fix our code. Understanding these traceback messages is essential. Regardless of how long each of us have been programming in Python, we will always get traceback messages. Do not panic when you receive a traceback message. Simply read the message and fix your code accordingly.
