Variables Flashcards
Name that represents a value in the computer’s memory
Variable
When a variable represents a value in the computers memory, we say that the variable ____ the value.
References
You use an _____ to create a variable and make it reference a piece of data.
Assignment statement
The = sign is known as the ____
Assignment operator
Describe the following:
> > > width = 10 [Enter]
The statement creates a variable named width and assigns it the value 10
When the variable begins with lowercase letters and the first character of the second and subsequent words is written in uppercase
camelCase
Process in which the Python interpreter automatically removes a value in a memory that is no longer reference by a variable
Garbage collection
Used to categorize values in memory
Data types
When an integer is stored in memory, it is classified as an ___
int
When a real number is stored in memory, it is classified as a ___
float
A number that is written into a programs code
Numeric literal
What is the program output?
> > > first_name = Bob
last_name = Jones
print(first_name, last_name)
Bob Jones
The ____ function always returns the user’s input as a string, even if the user enters numeric data.
input
A function that is defined within another function
Nested function
Any hypothetical person that is using a program and providing input for it
User or end user