Intro Python Flashcards
What does the print() function do in Python?
Tells a computer to talk
What do computer programmers refer to blocks of texts as?
They refer to them as strings
What are variables?
A method of storing data for reuse
What does a SyntaxError mean?
Means there is something wrong with the way your program is written
What does a NameError mean?
That the Python interpreter sees a word it does not recognize.
What is an integer?
A whole number, no decimal points.
What is another name for integer?
int
What is a floating-point number?
A decimal number
What is another name for a floating-point number?
float
What is a literal?
A number not assigned to a variable
What symbol do you need to use to update a string?
=
What is “ ** “ used for?
Donates notation
What does a modulo operator do?
gives the remainder of a division calculation
What is the modulo operator?
%
What does the + do?
Adds two numbers or two strings
What is the process of combining two strings called?
string concatenation
If you’re trying to print() a numeric variable you can use BLANK to pass it as a different argument rather than converting it to a string.
commas “ , “
What is “ += “ used for?
Short hand for updating variables
What is “ “”” “ used for?
multi-line strings