Introduction to Python Questions
Q. Which version introduced type hints?
View SolutionQ. What is the output of print(__name__) in a script?
View SolutionQ. Which operator assigns a value?
View SolutionQ. What does sys.exit() do?
View SolutionQ. Which command creates a virtual environment?
View SolutionQ. What is the purpose of a docstring?
View SolutionQ. Which data structure is immutable?
View SolutionQ. What does __name__ == ‘__main__’ check?
View SolutionQ. Which command activates a virtual environment in Windows?
View SolutionQ. What is the purpose of a Python virtual environment?
View SolutionGet Question Bank
Strengthen Your Practice with our comprehensive question bank.