PYTHON PROGRAMMING QUIZ QUESTIONS
variable
1. A _____ stores a piece of data, and gives it a specific name.
For example:
spam = 5
boolean
2. A _____ is like a light switch. It can only have two values. Just like a light
switch can only be on or off, a _____ can only be True or False
The __ sign is for comments. A comment is a line of text that Python won't
try to run as code. It's just for humans to read.
comment
3. A ____ is a line of text that Python won't try to run as code. It's just for
humans to read.
triple quotation(โโโ)
4. The __ sign will only comment out a single line. While you could write a
multi-line comment, starting each line with __, that can be a pain.
Instead, for multi-line comments, you can include the whole block in a set of
____ _____ marks:
"""Sipping from your cup 'til it runneth over,
Holy Grail.
"""
*
in python, we use __ to indicate multiplication
**
in python, we use __ to indicate exponents.
modulo
5. ____ returns the remainder from a division. So, if you type 3 % 2, it will
return 1, because 2 goes into 3 evenly once, with 1 left over.
%
a modulo is represented by what between numbers?