Python import Keyword
Example
Import the datetime module and display the current date and time:
import datetime x = datetime.datetime.now() print(x)
Definition and Usage
The import Keyword is used to import modules.
related pages
Please visit our Python Modules Learn more about modules in the tutorials.