'''
Online Python Interpreter.
Code, Compile, Run and Debug python program online.
Write your code in this editor and press "Run" button to execute it.
'''
v1 = "2.34"
v2 = 2.34
v3 = v2
print("v1: " + str(v1) + ", type: " + type(v1).__name__ + ", is float: " + str(isinstance(v1, float)))
print("v2: " + str(v2) + ", type: " + type(v2).__name__ + ", is float: " + str(isinstance(v2, float)))
print("v3: " + str(v3) + ", type: " + type(v3).__name__ + ", is float: " + str(isinstance(v3, float)))
v3 = None
print("v3: " + str(v3) + ", type: " + type(v3).__name__ + ", is float or NoneType: " + str(isinstance(v3, (float, type(None)))))
if type(v1) is str:
print("v1 is str")
else:
print("v1 is not str")
if type(v2) is not float:
print("v2 is not float")
else:
print("v2 is float")
if type(v3) == type(None):
print("v3 is None")
else:
print("v3 = " + str(v3))