click below
click below
Normal Size Small Size show me how
Python for Beginners
Answer | Question |
---|---|
Statement | print('') is an example of a _________ |
Statement | Code gets executed by using a ______ |
Line by Line | Python code gets executed _____ by _____ |
String | What is a line of characters called? |
Expression | What is a code that produces a value? |
Evaluate the Expression | What must Python do before executing a code? |
Variables | What is used to temporarily store data in a computers memory? |
Identifier | What defines a variable? |
Floating Point Number | What refers to a number with a decimal? |
Variables | price, print, and rating are all a form of____? |
Boolean | What is a value which can be true or false? |
Underscore | What is used to separate multiple words in our variables? |
True or False | What are the boolean values? |
Simple Values | In Python, _____ is stored in our computers memory. |
Simple Values | What can be numbers (integers or floats) or strings and booleans? |
Complex Values | In Python, ______ such as lists and objects can be stored. |
Function | Like "print", "input" is a ________ that is built into Python. |
Parenthesis | What punctuation means we are "calling" or "executing" a function? |
Concatenated or Combined | When you have two or more strings in an expression it is _______. |
int() | What built-in function converts a string into an integer? |
float() | What built-in function converts a string into a float? |
bool() | What built-in function converts a string into a boolean value? |
type() | What built-in function shows the "type" of a variable? |
Formatted Strings | What is useful in situations where you dynamically generate text with your variables? |
Formatted Strings | What is a string prefixed with an f and {} |
len() | What built-in Python function calculates the number of characters in a string? |
Method | What is a function that belongs to a string or is specific to some kind of object? |
General Purpose Function | What is a function that does not belong to a string or is not specific to an object? |
find method | What function do you use if you want to look at a character or a sequence of characters in a string? |
.replace() | What is the method function for replacing a character? |
in() | What do you use to check the existence of a character or sequence of characters in a string? |
The method produces a number of the character or sequence. | What is the "find" method? |
The "find" method is a number, the "in" operator produces a boolean value. (True/False) | What is the difference between the "find" method, and the "in" operator? |