Skip to content

Instantly share code, notes, and snippets.

@jennz0r
Created May 20, 2019 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jennz0r/4e026986ba0d42e71ac5f5279e642da2 to your computer and use it in GitHub Desktop.
Save jennz0r/4e026986ba0d42e71ac5f5279e642da2 to your computer and use it in GitHub Desktop.
function drSeuss(catInTheHat, thing1, thing2) {
if (catInTheHat == true &&
thing1 == true &&
thing2 == true) {
console.log('is cray');
} else if (catInTheHat != true) {
console.log('boring');
} else {
console.log('so boring');
}
}
def dr_seuss(cat_in_the_hat, thing1, thing2):
if cat_in_the_hat == True and
thing2 == True and
thing2 == True:
print 'is cray'
elif cat_in_the_hat != True:
print 'boring'
else:
print 'so boring'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment