Now, let's import the pyplot
submodule from matplotlib
. We can import submodules using two syntaxes in python:
from module_name import submodule_name as alias
OR
import module_name.submodule_name as alias
Import submodule pyplot
from matplotlib
under the alias plt
. You are free to use any of the mentioned syntax.
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Please login to comment
Be the first one to comment!