Lesson 3Exploring Basic Python Syntax

In this lesson, we will start programming Python. We will begin with an introductory look at Python syntax, comments, variables, user input, and data types.

There are a number of key terms you will see in this lesson. These include the following:

  • Syntax refers to the order in which letters, words, and characters appear in the code, including when to use punctuation symbols that serve as operators (like semicolons, brackets, parentheses, and slashes). While all programming languages have syntax rules, they are different from one language to another. Putting words in the wrong order or including characters in the wrong place leads to syntax errors that prevent the code from running.
  • Comments are code within Python that does not execute. Comments can be used to explain Python code, or make it more readable, ...

Get Job Ready Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.