Two characteristics of variables
What is the symbol that signals the end of a conditional statement?
No
What is the operator symbol utilized for concatenating str() variables?
Plus sign (+)
What is used in Python to signal the computer the existence of different blocks of code (e.g., functions, conditional, loops)?
Identation or spaces.
List three numeric data types
Integer, float, and complex
A boolean expression always resolves to ... what?
True or False
What is the statement that can finish the execution of a loop?
Break
What is the operator for modulus?
Percentage sign (%)
Name three functions built in Python that you have used.
Three ways you can define an str() variable in Python
single quotes, double quotes, and three double/single quotes.
Conditional statement type data makes your code difficult to read and can reduce the efficiency of a program logic.
Nested Conditional
What is a definitive loop?
A For loop. It is a loop that has a definite iteration window or length.
Three essential elements for defining a function
Keyword def, function name, colon.
E.g., def function_name():
In the acronym PEMDAS, what does the "A" stands for?
Addition
Name two immutable data structures
Tuple and frozenset
What are the differences between a == b and a = b?
The first one executes a comparison and the second one executes a value assignment
When does a while loop repeat indefinitely?
Infinite loop. The condition on the while loop is True or resolves always to True
What are the two types of customized functions?
Void and fruitful.
What does the dir() function return?
The inside structure of a variable structure
What do you use to change data types in Python?
Type conversion function
What is an alternative conditional execution? Give an example in Python
a += 1
What does the str split function do?
Splits a text variable on the given marker. If the function is not given the marker, it splits into spaces that as result should capture all words.
Syntax, Logic, and Semantic errors.