Multiple choice technology programming languages

A class or a function definition in python ends with _____

  1. semicolon

  2. parentheses

  3. colon

  4. angle bracket

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In Python, class and function definitions must end with a colon (:) to introduce the following indented code block. This is a fundamental syntax rule.