Learn to Code via Tutorials on Repl.it!

← Back to all posts
Py package
Muhammadzakirha (1)

Also you can create simple package with python

Example:

import time

time.sleep(10)

Is python package original you can type from time import sleep

and you can create the package but its local for pip in the documentation and publish package

For make this make a directory:

Example-pkg
  |
  |-example-pkg
  |   |
  |   |- __init__.py
  |-Main.py

In init.py

print("hello")

in main.py

import example-pkg

The uotputs will be hello you can add some definision and other ok bye(posible to repl.it)