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
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
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.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic