How to import Scipy and it's Module ?
Import Scipy and it's Module
Import library only -
Syntax - import <libraryName>
Example - import pandas
Import Library with sub_name -
Syntax - import <LibraryName> as <Sub_Name>
Example - import numpy as np
Import Library with it's Module-
Syntax - from <libraryName> import <ModuleName>
Example - from scipy import constants
A simple and One Line Code
from scipy import module
We have to import Scipy library and it's Module( constants).
..We are ready to begin..
Example-
1cm³= 1ml = 0.001L
Output will be -
" Now we are ready to use Scipy ".
Comments
Post a Comment