Zybooks L2 Flashcards
assignment statement
assigns a variable with a value, such as x = 5
= is not equals
In programming, = is an assignment of a left-side variable with a right-side value
incrementing the variable
Increasing a variable’s value by 1, as in x = x + 1
If x was originally 6, x is assigned with 6 + 1, or 7
identifier/ name
a sequence of letters (a-z, A-Z), underscores (_), and digits (0–9), and must start with a letter or an underscore.
reserved words/ keyword
words that are part of the language and cannot be used as a programmer-defined name (i.e. ‘and’, ‘true)
object
represents a value and is automatically created by the interpreter when executing a line of code. For example, executing x = 4 creates a new object to represent the value 4.
garbage collection
unused objects are automatically deleted to free up memory space, typically once printed
type()
built-in function finds the type of an object?