Page 206 - Ai Book - 10
P. 206
8. What is the purpose of the assignment operator (=) in Python?
a. Compares two values
b. Performs arithmetic operations
c. Assigns a value to a variable
d. Executes a block of code
Answers
1. (c) 2. (c) 3. (c) 4. (a) 5. (c) 6. (b)
7. (c) 8. (c)
B. Fill in the blanks.
1. To start Jupyter Notebook, the command ‘_______________’ is used.
2. A virtual environment helps to keep dependencies _______________ by creating isolated Python virtual
environments for different projects.
3. The print() function in Python is used to print the specified _______________ to the screen.
4. Anaconda is a distribution of the _______________ programming language.
5. Anaconda Navigator is a desktop graphical user interface (GUI) included in the Anaconda distribution for
managing _______________ and _______________.
6. To start Jupyter Notebook, type _______________ command in the command line.
7. A virtual environment in Python is a tool to keep dependencies required by different projects by creating
isolated Python _______________ for them.
8. In Jupyter Notebook, the menu used for basic operations such as opening a new document and saving is
the _______________ menu.
9. The _______________ function in Python is used to print the specified message or string to the screen.
10. The logical operator that returns true only if both conditions are true is _______________.
11. The purpose of the assignment operator (=) in Python is to _______________ a value to a variable.
Answers
1. jupyter notebook 2. separate 3. message, string, or any other object
4. Python 5. environments, packages 6. jupyter notebook
7. environments 8. File 9. print()
10. and 11. assign
C. State ‘T’ for True or ‘F’ for False statements.
1. The Jupyter Notebook interface opens in a web browser, and the file extension used for Jupyter
Notebook files is “.py”.
2. Python is not commonly used for Jupyter Notebook; it is primarily used for traditional
software development.
3. The purpose of a virtual environment in Python is to mix dependencies of different projects
to enhance code modularity.
4. The input() function in Python is used to accept input from the user, and the data type of the
input is always a string.
80
80