Which of the following is used in Python to denote a block of code?
- Curly braces {}
- Indentation
- Parentheses ()
- Square brackets []
In Python, code blocks are denoted by indentation, typically using four spaces. It's a fundamental aspect of Python's syntax, known as the "off-side rule."
Loading...
Related Quiz
- In object-oriented programming in Python, ____ refers to the class that a class inherits from.
- Which Python entity is primarily affected or modified by a metaclass?
- How would you handle large DataFrames that do not fit into memory using Pandas?
- In Flask, the ____ object is used to store data that is accessible from all parts of an application.
- You're debugging a script and encounter an empty function that crashes the program because there's no code inside it. Which statement can be temporarily added to the function to avoid this error?