Arithmetic & Variables Flashcards
What is the computers response to the code called?
Output
The code inside the box is called what?
Code cell
What symbol is used to write an exponent?
**
What are comments used for?
To annotate what the code is doing
What do variables need to start with?
Letter or underscore
Can variables have spaces?
No
Variables can only contain what?
Letter, underscore & numbers
How would you check to see what has been assigned to a variable?
Print()
What should you use to save a result and work with it later?
Variable
What is this called ‘=‘
Assignment operator
A Python function that displays the value passed to it on the screen
What do comments begin with?
#
The colon at the end of the if indicates what?
A new code block
What does this operator do? //
Rounds down to the next integer
What does abs return?
The absolute value of an argument