Import keyword in python | Import Statement in Python | Python tutorials for beginners

preview_player
Показать описание
#ImportKeywordInPython
1. This keyword is used to importing the built-in modules or built-in libraries
and user-defined modules also.
2. It is a predefined #keyword in python.
3. In python , it is available different formats:
4. syntaxes of #ImportStatement:
syntax-1:
import modulename
ex-1:
import numpy
ex-2:
import math
ex-3:
import scipy
ex-4:
import random
syntax-2:
import modulename as aliasname
ex-1:
import numpy as n
ex-2:
import math as m
ex-3:
import scipy as s
ex-4:
import random as r
syntax-3: to import morethan one module at a time:
import modulename-1,modulename-2,modulename-3......etc.
ex-1:
import math,random,numpy,keyword

syntax-4: to import morethan one module with alias namees
import modulename-1 as alias-1, modulename-2 as alisa-2,....ect
ex-1:
import math as m,random as r, numpy as n, keyword as k

syntax-5: import modules with from keyword.
from modulename import all
ex-1: from math import *
ex-2: from random import *
ex-3: from numpy import *
ex-4: from scipy import *

syntax-6: import the specified variables and functions only
from modulename import specifieditems
ex-1: from math import pi,e
ex-2: from keyword import kwlist
ex-3: from os import rmdir
---------------------------------------------------------

►THANKS for taking the time to visit, I hope you SUBSCRIBE and enjoy the upcoming videos!

►Please SUBSCRIBE for More videos:

►If you like this video, Please click on Like and Comment!

►Follow Us on Social Network:

Python tutorial for beginners| python programming language tutorial
Python basics | python tutorial for beginners | learn python programming from scratch
Python tutorial for beginners - learn python for machine learning and web development.
Python tutorial for beginners | python programming | learn python | great learning.
Python tutorial for beginners [full course] learn python for web development.
Рекомендации по теме
welcome to shbcf.ru