Introduction
In previous post we have made our first step into the world of python.In this short post we will see how to import external libraries into python file.
The Keyword "Import"
if you want to import external libraries into your python code is simply use "import" keyword. like in Java.
Here's a simple example of import keyword that shows how to import library call "Math" in Python code.
- import math
You can also import single component from library. Following statement show how you can import single component from python library.
- from math import sqrt
- from math import sqrt as st
In the next post we will look at role of white space in python.