Answers for "external modules in python"

1

how to add modules in python

# how to use any module in python
# first instal what module you want to use in vscode
# my time is alredy installed there for we get an error
# moving to next is how to use
import time
for i in range (3):
    print("Whait wor 3 sec...")
    time.sleep(3)
    
    print(i + 1)
# every module are used in their own manner
# you can search like python (module) package
# eg = python time package
# and you will khow how to use it
# as you have seen that it weight for 3 second
# thank you for wathing 
# good bye
# have a nice day
# Do your programsin vscode it would be more easy
Posted by: Guest on August-16-2021
0

how to import modules in python

# import all functions in the module 0-print_list_intiger
import 0-print_list_intiger 
# import only print_list_integer function from the module 0-print_list_intiger
from 0-print_list_integer import print_list_intiger
# point the function print_list_intiger from the module 0-print_list_intiger to a string print_list_intiger
print_list_intiger = __import__('0-print_list_intiger').print_list_integer
Posted by: Guest on May-24-2021

Python Answers by Framework

Browse Popular Code Answers by Language