How does Python interpret the following line: # This is a comment?
- It's a multiline string
- It's a syntax error
- It's executed as code
- It's treated as a comment
In Python, lines starting with '#' are considered comments. They are ignored by the interpreter and serve as documentation for human readers.
Loading...
Related Quiz
- In Python, every function returns a value. If no return statement is present, it returns _______ by default.
- When integrating a Python back-end with a front-end form, how can you secure the application against Cross-Site Request Forgery (CSRF) attacks?
- A ____ sort is a highly efficient sorting algorithm based on partitioning of an array of data into smaller arrays.
- In Python, which keyword is used to define a metaclass within a class definition?
- How would you enable Cross-Origin Resource Sharing (CORS) in a Flask application?