Skip to content

Instantly share code, notes, and snippets.

@bcuz
Created June 5, 2018 16:36
Show Gist options
  • Save bcuz/830111d35a10d7e129b30c6b6f625330 to your computer and use it in GitHub Desktop.
Save bcuz/830111d35a10d7e129b30c6b6f625330 to your computer and use it in GitHub Desktop.
varA=input()
varB=input()
if (type(varA) == str) or (type(varB) == str):
print( "string involved")
# else:
try:
varA=int(varA)
varB=int(varB)
if varA>varB:
print ("bigger")
elif varA< varB:
print ("smaller")
else:
print ("equal")
except ValueError:
print ("not possible")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment