how to check the type of a variable in python
print(type(x))
how to get the type of a variable in python
age = 28
#To get the type us following command
print(type(age))
how to get the type of a variable in python
Varible = 78
#To get the type do the following
print(type(Varible ))
python get type of variable
>>> i = 123
>>> type(i)
<type 'int'>
>>> type(i) is int
True
>>> i = 123.456
>>> type(i)
<type 'float'>
>>> type(i) is float
True
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