1. A variable is a named location reserved to store values in the memory. A variable is created or initialized automatically when you assign a value to it for the first time. (2.1.4.1)
Comments
1. Comments can be used to leave additional information in code. They are omitted at runtime. The information left in source code is addressed to human readers. In Python, a comment is a piece of text that begins with #
. The comment extends to the end of line.
Logic and bit operations
1. Python supports the following logical operators:
Operators
1. An expression is a combination of values (or variables, operators, calls to functions ‒ you will learn about them soon) which evaluates to a certain value, e.g., 1 + 2
.
Literals
1. Literals are notations for representing some fixed values in code. Python has various types of literals – for example, a literal can be a number (numeric literals, e.g., 123
), or a string (string literals, e.g., “I am a literal.”).