
Functions are really important for programmers. Functions in Python are used to utilize the code in more than one place in a program. Python provides you many inbuilt functions like print(), but it also gives freedom to create your own functions. And furthermore there a many prefabricated functions in libraries. To use them you have to import them. This works in different ways:
You can import the whole library, then you must call the function by libraryName.functionName():

You can import only one function from a library, then you can call it by just using its name:

You can import only one function from a library and give it a individual name:














