Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
int
int
Return an integer object constructed from a number or string x, or return 0 if no arguments are given.
Python 3.13
int
(
x
,
base
=
10
)
base
The number system for string x.
Examples
Python 3.13
>>
>
int
(
'123'
)
123