When importing a module, what is the primary purpose of using the as keyword?

  • To create an alias for the module
  • To hide the module's functions
  • To prevent the module from being imported again
  • To specify the module's version
The 'as' keyword is used to create an alias for a module when importing it. This alias can make it easier to reference the module in your code, especially if the module name is long or conflicts with other names in your script.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *