In Python, what is the purpose of the __name__ attribute?ADefine the name of a functionBRetrieve the name of the current moduleCIdentify the type of an objectDAssign a name to a variable
Question
In Python, what is the purpose of the name attribute?ADefine the name of a functionBRetrieve the name of the current moduleCIdentify the type of an objectDAssign a name to a variable
🧐 Not the exact question you are looking for?Go ask a question
Solution
The purpose of the name attribute in Python is to retrieve the name of the current module. So, the correct answer is B.
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.