practicepython.in
python exercises
171 exercises

Daily #6 · 4 October 2026

Brackets are not a tuple Easy

What does this print?

point = (5)
print(type(point).__name__)
  1. Atuple
  2. Blist
  3. Craises TypeError
  4. Dint
Show the answer

D: int

Why: Brackets alone only group, as in maths. It is the comma that makes a tuple: (5,) is a one-item tuple, and so is 5, on its own.

Play today’s puzzle →