Python from Keyword
Import only the time section from the datetime module, and print the time as if it was 15:00:
x = time(hour=15)
Definition and Usage
from keyword is used to import only a
specified section from a module.
Read more about modules in our Python Modules Tutorial.