Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Predict the output
/
Python
/
Sets
What does this program print?
from Sets
Python 3.14
beginner
2 min
What does this program print?
Python
Copy
values
=
{
True
,
1
,
1.0
}
print
(
len
(values))
print
(
True
in
values)
1 then True
3 then True
3 then False
It raises TypeError because the types differ.
Check
Copy code
Open in playground
Ask AI about this kata
Report an error
previous kata
Which expression accepts a list on the right without converting it first?
Quiz
next kata
A cleanup operation may run repeatedly, and an already-absent member is valid. Which oper…
Quiz
A new version is available
Reload