KnowledgeBoat Logo

Computer Applications

Which of the following is used to define a block of code (e.g., body of if or body of a loop) in Python ?

  1. { }
  2. ( )
  3. indentation
  4. Quotation

Python Control Flow

1 Like

Answer

indentation

Reason — Indentation is used to define a block of code in Python.

Answered By

3 Likes


Related Questions