+ 1

What is int() ?

7th Jun 2021, 11:59 AM
URThePro
URThePro - avatar
2 Antworten
+ 4
int() function in Python and Python3 converts a number in given base to decimal. ... string : consists of 1's and 0's base : (integer value) base of the number. Returns : Returns an integer value, which is equivalent of binary string in the given base. credit - geeksforgeeks link - https://www.google.com/amp/s/www.geeksforgeeks.org/python-int-function/amp/
7th Jun 2021, 12:07 PM
Abhiyantā
Abhiyantā - avatar
+ 1
Its integer numbers, like 10, 20, 3, 4, 8. But not 5.45, 7.56 - these are floating point numbers. You can call it by float() In python integers numbers used in list (like index), boolean (True = 1, False = 0)
7th Jun 2021, 12:07 PM
Maxbro
Maxbro - avatar