Week 2 Flashcards
What is the name of the internal representation of literals used by an executed python program?
Objects OR Values
What are operators and operands?
Operators are functions that complete acts of computations.
Operands are the objects that are worked on by operators
What is a function call?
This is when we invoke a function in the form X(x)
X = name of function x = inputs
What is the name of the output of a function?
Output OR Return Value
What do pearentheses do?
They invoke functions.
Are functions objects?
YES
Invoked by ()
Are functions objects?
YES
Invoked by ()
Can you concatenate a string and integer?
Yes, only if you first convert the integer into a string.
Otherwise, no.
Can you concatenate a string and integer?
Yes, only if you first convert the integer into a string.
Otherwise, no.
What are the main data types?
Int = integers Floats = decimals Str = strings
What is a variable?
A variable just refers to an object/value
What are assignment statements?
These are statements using ‘=’ to attach one object to another thus creating new variables.
Can variables contain spaces?
NO
use underscores if needed
Are variables case sensitive?
YES
Can variables start with a number?
NO