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
/
Quiz
/
Python
/
Variables and data types
What is the safest description of int() at an input boundary?
from Variables and data types
Python 3.14
beginner
2 min
What is the safest description of int() at an input boundary?
It converts according to the source type, but format and range still need an explicit contract.
It validates every number-like input without losing information.
It rounds floating-point values to the nearest integer.
It returns None whenever text cannot be parsed.
Check
Ask AI about this kata
Report an error
previous kata
Which statement about dynamic typing and annotations is accurate?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload