Q. What is the output of print(__name__) in a script?
Solution:
print(__name__) outputs ‘__main__’ when the script is run directly.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
print(__name__) outputs ‘__main__’ when the script is run directly.
Strengthen Your Practice with our comprehensive question bank.