Types of Variable

Different types of variable in Python3. Integer, Float(Decimal values), String, and boolean.

int_id = 1001
float_price = 98.98
string_name = 'String'
bool_counter = True

print(int_id)
print(float_price)
print(string_name)
print(bool_counter)

print('Type of data variable - int_id:’, type(int_id))
print('Type of data variable - float_price:', type(float_price))
print('Type of data variable - string_name:', type(string_name))
print('Type of data variable - bool_counter:’, type(bool_counter))