Load

calender iconUpdated on November 25, 2023
investing
mutual funds

Table of Contentstable of content icon

The load function in Python is used to import a module, a file containing Python code, from the file system.

Syntax:

pythonload(module_name)

Parameters:

  • module_name: The name of the module to be loaded. This can be a package or a Python module file.

Example:

“`python

Import the math module

import math

Access functions from the math module

print(math.pi)print(math.sqrt(2))“`

Output:

3.141592653591.41421356237

Notes:

  • The load function is considered deprecated in Python 3 and replaced with the import statement.
  • The module name must be a valid Python identifier.
  • If the module is not found, an error will be raised.
  • The load function can also be used to load a module from a particular path. For example:

“`python

Import a module from a specific path

load(‘/home/user/my_module.py’)“`

Equivalent Import Statement:

“`pythonimport math

Same as load(math)

import math“`

Therefore, the load function is primarily used in older Python code and is not recommended for use in new code.

Categories

Pocketful Fintech Capital Private Limited (CIN U65999DL2021PTC390548):

The SEBI Registration No. allotted to us is INZ000313732.
NSE Member Code: 90326| BSE Member Code: 6808| MCX Member Code: 57120
DP CDSL: 12099800

Compliance Officer : Mr. Randhir Kumar Chaudhari
Tel no: 011- 49022222 / 011-49022277
Email: randhir@pocketful.in

Registered Address/Correspondence Address: C- 3, Ground Floor, Okhla Industrial Area, Phase - 1, New Delhi - 110020

For any complaints, drop us an email atlegal@pocketful.in

Procedure to file a complaint on SEBI SCORES: Register on SCORES portal. Mandatory details for filing complaints on SCORES: Name, PAN, Address, Mobile Number, E-mail ID.

Smart Online Dispute Resolution|Link To Circular|Procedures and Policies|Broker Investor Charter|DP Investor Charter

Benefits: Effective Communication, Speedy redressal of the grievances.

Benefits: Effective Communication, Speedy redressal of the grievances.

Please ensure you carefully read the Risk Disclosure Document as prescribed by SEBI and our Terms of Use and Privacy Policy.
The brand name Pocketful and logo is in process of trademarks registration. The cost-effective brokerage plans make Pocketful a trustworthy and reliable online stock broker. Available on both the web and mobile, it offers unmatched convenience to traders. If you are considering opening......

Read More