0
0
SciPydata~10 mins

Installation and setup in SciPy - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to install the scipy package using pip.

SciPy
pip install [1]
Drag options to blanks, or click blank then click option'
Anumpy
Bmatplotlib
Cscipy
Dpandas
Attempts:
3 left
💡 Hint
Common Mistakes
Typing the wrong package name like numpy or pandas.
Forgetting to use pip before install.
2fill in blank
medium

Complete the code to import the scipy library in Python.

SciPy
import [1]
Drag options to blanks, or click blank then click option'
Anumpy
Bscipy
Cpandas
Dmatplotlib
Attempts:
3 left
💡 Hint
Common Mistakes
Importing numpy instead of scipy.
Misspelling the library name.
3fill in blank
hard

Fix the error in the command to install scipy with pip for Python 3.

SciPy
python3 -m [1] install scipy
Drag options to blanks, or click blank then click option'
Apipenv
Bpip2
Cpip3
Dpip
Attempts:
3 left
💡 Hint
Common Mistakes
Using pip3 instead of pip with -m.
Using pipenv which is a different tool.
4fill in blank
hard

Fill both blanks to import the optimize submodule from scipy.

SciPy
from [1] import [2]
Drag options to blanks, or click blank then click option'
Ascipy
Bnumpy
Coptimize
Dstats
Attempts:
3 left
💡 Hint
Common Mistakes
Importing optimize from numpy or stats from scipy incorrectly.
Swapping the order of library and submodule.
5fill in blank
hard

Fill all three blanks to create a virtual environment named 'env' and activate it.

SciPy
python3 -m [1] [2]
source [3]/bin/activate
Drag options to blanks, or click blank then click option'
Avenv
Benv
Dvirtualenv
Attempts:
3 left
💡 Hint
Common Mistakes
Using virtualenv instead of venv module.
Using different names for creation and activation.