{"id":24792,"date":"2021-11-02T09:47:58","date_gmt":"2021-11-02T04:17:58","guid":{"rendered":"https:\/\/python-programs.com\/?p=24792"},"modified":"2021-11-05T20:36:36","modified_gmt":"2021-11-05T15:06:36","slug":"python-int-method-with-examples","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-int-method-with-examples\/","title":{"rendered":"Python int() Method with Examples"},"content":{"rendered":"

In the previous article, we have discussed Python id() Method with Examples<\/a>
\nint() Method in Python:<\/strong><\/p>\n

The int() function converts the given value to an integer number.<\/p>\n

Syntax:<\/strong><\/p>\n

int(value, base)<\/pre>\n

Parameter Values:<\/strong><\/p>\n

value:<\/strong> It is a number or string that can be converted into an integer number.<\/p>\n

base:<\/strong> The number format is represented by a number. 10 is the default value.<\/p>\n

Return Value:<\/strong><\/p>\n

The int() method gives:<\/p>\n