🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

उस कथन का नाम बताइए जिसका उपयोग एक मॉड्यूल के सभी कार्यात्मकता को दूसरे में आयात करने के लिए किया जाता है।

Name the statement which is used to import all thefunctionally of one module into another.

A
import
B
asset
C
try
D
Exception
Explanation
The correct statement for importing all the functionality of one module into another in Python is the import statement. 
While option A, import, is the correct keyword, there are a few variations of the import statement in Python that can achieve this, including:
  • import module_name: This imports the entire module, and you must access its contents using module_name.function_name.
  • from module_name import *: This statement imports all public functions, classes, and variables directly into the current namespace. However, this is generally discouraged in larger projects because it can cause namespace conflicts. 
The other options are incorrect:
  • assert: Used for debugging and testing to check if a condition is true.
  • try and Exception: Used for error handling. 

Correct Answer: A) import

Latest Updates