Ask coding questions

← Back to all posts
AlfiePython (3)

What type of imports are there. E.g

import time
import os
import random

are there any more

Coder100 (16872)

There's many, starting even from the stdlib:
look at the docs:

and then there is even more by the community, click this cube:

and you can also import your own files

OldWizard209 (1091)

@AlfiePython There are literally thousands of imports. Importing is basically importing a Python Package that is in PyPi(Python Package INdex) which contains all the packages that are installable with Python. Here is the official PyPi Page. All the packages in there can be installed using pip install <package name> command in the shell or terminal;. Then you can import them. You can also create your own Package on and import like:

Let's say u create a file nameed You can import this in you using import python_package And if you have a function called sample_function() in, you can import only that function into using from python_package import sample_funtion Hope this helps you

PS: Ping me if u need more help...