Single Choice Not Set

QWhat does the Python language's definition of a block of code look like?

ID: #4818 Python Basic MCQ 262 views
Question Info
#4818Q ID
Not SetDifficulty
Python Basic MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Key
  • B Brackets
  • C Indentation
  • D None of these
Correct Answer

Explanation

In Python, indentation is used to indicate which lines of code belong to the same block.
This is in contrast to languages like C, C++, and Java, which use curly braces to define blocks of code.
In these languages, the curly braces indicate the beginning and end of a block of code, and the code within the curly braces is indented to show that it belongs to the block.

Share This Question

Challenge a friend or share with your study group.