How does Python define a block of code such as a loop body or function body?
Correct answer
D. By indentation
5 views
D. By indentation
5 views
Python uses consistent indentation to define code blocks instead of braces.
Asked in: Python Interview Basics
https://docs.python.org/3/tutorial/introduction.htmlNot sure why the answer is D? Ask here and get an explanation.