Skip to content

Instantly share code, notes, and snippets.

@0x48piraj
Created July 23, 2018 13:10
Show Gist options
  • Save 0x48piraj/000ca31c492a7da96f2539a27df5cae0 to your computer and use it in GitHub Desktop.
Save 0x48piraj/000ca31c492a7da96f2539a27df5cae0 to your computer and use it in GitHub Desktop.
Exercise: vara varb - MITx+6.00.1x
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