print variable type python
v = 10
type(v)
# <type 'int'>
print variable type python
v = 10
type(v)
# <type 'int'>
how to get the type of a variable in python
age = 28
#To get the type us following command
print(type(age))
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
how to get the type of a variable in python
Varible = 78
#To get the type do the following
print(type(Varible ))
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