Python Variables Basics
- 35Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
35 questions
- 1Python is considered one of the most_____programming languages.
Hint
Think about how widely it is used in industry and academia.
Answer
popular
- 2Python is used at both small companies and larger companies, including_____.
Hint
A major tech company that uses Python.
Answer
Google
- 3One advantage of Python is its fairly simple_____.
Hint
The set of rules that defines the structure of the language.
Answer
syntax
- 4Python is used for websites'_____code, which runs on the server.
Hint
The part of a web application that is not visible to the user.
Answer
back-end
- 5Python is popular for data analysis and_____research purposes.
Hint
Related to experiments and studies in science.
Answer
scientific
- 6IDE stands for Integrated Development_____.
Hint
The last word of the acronym IDE.
Answer
Environment
- 7An IDE includes a text editor, the ability to run a program, and a_____for debugging.
Hint
A tool that helps find and fix bugs.
Answer
debugger
- 8The recommended IDE for this series is PyCharm_____Edition.
Hint
The free version of PyCharm.
Answer
Community
- 9Jupyter Notebook is an environment for writing and testing your program_____.
Hint
Opposite of slowly; it allows rapid development.
Answer
quickly
- 10Jupyter Notebook is popular with the scientific community and for_____purposes.
Hint
Examining and interpreting data.
Answer
data analysis
- 11Jupyter Notebook has two components: a server (command line) and a_____(browser window).
Hint
The part you interact with visually.
Answer
user interface
- 12If you close the Jupyter Notebook server window, the notebook might stop_____.
Hint
What happens when the core component is shut down.
Answer
working
- 13Anaconda is a_____manager that allows you to install many programs at once.
Hint
A tool that handles software packages.
Answer
package
- 14When installing Anaconda, you should choose Python_____version.
Hint
The newer major version of Python.
Answer
3
- 15To launch Jupyter after installing Anaconda, you launch_____Navigator.
Hint
The application that comes with Anaconda to manage environments.
Answer
Anaconda
- 16In Jupyter Notebook, a new notebook is created by clicking New and then_____.
Hint
The kernel to use for Python code.
Answer
Python 3
- 17Notebook files have the extension_____.
Hint
The file extension for Jupyter notebooks.
Answer
.ipynb
- 18In Jupyter Notebook, each_____represents a set of code.
Hint
The building block of a notebook.
Answer
cell
- 19To execute code in a cell, you use the_____button at the top.
Hint
The action to execute the code.
Answer
run
- 20The_____
print()function prints whatever is inside the.Hint
The symbols that enclose function arguments.
Answer
parentheses
- 21A string in Python is usually enclosed by double quotes or_____quotes.
Hint
The other type of quotation mark.
Answer
single
- 22If you forget to close the parentheses when using_____
print(), you will get an.Hint
Something that indicates a problem in the code.
Answer
error
- 23You can print a_____instead of a string, for example
print(3).Hint
A numeric value without quotes.
Answer
number
- 24In the statement_____
a = 1, the variableais assigned the value.Hint
The numeric value on the right side of the equals sign.
Answer
1
- 25A variable in Python is more accurately thought of as a_____that can refer to any value.
Hint
An item that labels something, not a container.
Answer
name tag
- 26Using_____
print(a)without quotes aroundaprints thethatarefers to.Hint
What the variable represents.
Answer
value
- 27Two or more variables in Python can_____to the same value.
Hint
Another word for 'point to'.
Answer
refer
- 28Reassigning a variable changes what it_____to.
Hint
The relationship between variable and value.
Answer
refers
- 29A variable can be reassigned to a different_____of value, such as from number to string.
Hint
Category like integer or string.
Answer
type
- 30Trying to print a variable that does not exist results in a_____.
Hint
An error that occurs when a name is not defined.
Answer
NameError
- 31If_____
a = 1andf = a, thenfrefers to the value.Hint
The same value a originally refers to.
Answer
1
- 32After_____
a = 1; f = a; a = 2, the value offremains.Hint
fdoes not change whenais reassigned.Answer
1
- 33The naive swap_____
v1 = v2; v2 = v1fails because both variables end up referring to thevalue.Hint
Opposite of different.
Answer
same
- 34A proper way to swap two variables uses a_____variable to temporarily hold one value.
Hint
An extra variable used for storage during the swap.
Answer
temporary
- 35The correct swap pattern is: `temp = v1; v1 = v2; v2 =_____`.
Hint
The variable that holds the original first value.
Answer
temp

Ask anything
We've read this whole study set, so questions about it get the best answers.