Skip to content
Quiz · Tuples and unpacking · lesson 2 of 8

Quiz — a one-element tuple

What does the program print?

Python
a = (1)
b = (1,)
print(a == 1, b == 1, len(b))

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way