11 lines
340 B
Python
Raw Normal View History

2021-04-17 22:41:26 -04:00
mystring = "Hello From a String"
myint = 420
myfloat = 4.20
if mystring == "hello":
print("String: %s" % mystring)
if isinstance(myfloat, float) and myfloat == 4.20:
print("Float: %f" % myfloat)
if isinstance(myint, int) and myint == 420: #I copied this line, will learn if statements soon I hope!
print("Integer: %d" % myint)