python is integer
(1.23).is_integer() # Returns false
what is an integer in python
# Integers are one of the basic data types in Python
# Simply, integer is a whole number denotes by - int - in Python
# Converting to an integer can be done with - int()
# You can do simple arithmetic with integers
# The default is in decimal - base 10 - but if you want you can view them in different bases
# The biggest integer you can go for is limited by the memory limit of your computer
a = 123
type(a)
#Output - <class 'int'>
b = "456"
c = int(b)
type(c)
#Output - <class 'int'>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us