Created
July 23, 2018 13:10
-
-
Save 0x48piraj/000ca31c492a7da96f2539a27df5cae0 to your computer and use it in GitHub Desktop.
Exercise: vara varb - MITx+6.00.1x
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
string_random = 'This Course is Great' | |
int_random = 3 | |
if type(varA) == type(string_random): #why to compare with str, right ? | |
print("string involved") | |
elif type(varB) == type(string_random): | |
print("string involved") | |
elif varA > varB: | |
print("bigger") | |
elif varA == varB: | |
print("equal") | |
elif varA < varB: #can be just else: | |
print("smaller") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment