11 lines
340 B
Python
11 lines
340 B
Python
|
|
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)
|