Ask Question

You are designing a script that may be imported as a module in other scripts. What variable can you use to check whether the script has been imported as a module, or is running as the main script?

+4
Answers (1)
  1. 14 July, 08:23
    0
    The name can be used as a variable in this case.

    Explanation:

    A script is an "instruction" that is executed by computer systems in order to display some information that must be understood as an action to be performed by a computer program. More simply, we can say that a script is a sequence of orders for certain software, where an action is coded and translated by computer programs.

    If you dress by designing a script that can be imported as a module in other scripts, you can use the name as a variable to check whether the script has been imported as a module or is being executed as the main script.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “You are designing a script that may be imported as a module in other scripts. What variable can you use to check whether the script has ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers