University
Correct 61
Incorrect
Your answers
Term
What are truthy and falsy values in Python?
Truthy values are non-zero numbers and non-empty strings.
achieve it.
, It enhances output formatting by embedding variables in strings. (although 'f'
strings are easier to read)
string [start:stop:step]
· Start: the index from which the slicing begins (inclusive)
· Stop: the index at which the slicing ends (exclusive)
· Step (optional): The step or stride between characters.
Don't know?
2 of 61
Term
What does this built in Python function do?: input()
Give this one a try later!
reads user input from the
stores data in a file
console
executes a program command outputs data to the console
Don't know?
, 3 of 61
Term
What are the traits of Functional Programming?
Give this one a try later!
emphasizes the use of
focuses on object interactions and
functions and immutable data
state management.
for computation.
prioritizes the use of variables and emphasizes the use of loops and
mutable data for tasks. iterative processes for computation.
Don't know?
4 of 61
Definition
1. can only contain letters, numbers, or an underscore.
2. MUST start with either a letter or underscore
3. Cannot start with a number
4. Cannot contain special characters.
5. Cannot be a Python keyword (such as: and, as, def, else, etc)
Give this one a try later!
What are the 5 Variable name What are the 3 components of a
rules in Python? string slice?
, What are the traits of Event-Driven What are the traits of Declarative
Programming? Programming?
Don't know?
5 of 61
Term
what is a dictionary mapping type?
Give this one a try later!
To define the structure and Unordered, mutable collection of
hierarchy of the code unique elements. {1,2,3}
an unordered collection of
It enhances output formatting by
key-value pairs.
embedding variables in strings.
(although 'f' strings are easier to
my_dict = {'key':'value',
read)
'name':'John'}
Don't know?
6 of 61
Term
What does Python syntax refer to?