Created
April 12, 2019 16:40
-
-
Save dariogabriel113/a15f0f9fd964c878bb397a3d49a6e3da to your computer and use it in GitHub Desktop.
Variables and Types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mystring = "hello" | |
myfloat = 10.0 | |
myint = 20 | |
# testing code | |
if mystring == "hello": | |
print("String: %s" % mystring) | |
if isinstance(myfloat, float) and myfloat == 10.0: | |
print("Float: %f" % myfloat) | |
if isinstance(myint, int) and myint == 20: | |
print("Integer: %d" % myint) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment