Skip to content

Instantly share code, notes, and snippets.

@balu
Created January 28, 2021 06:35
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 balu/5c16a42314bf91eab1ec8fab3b9ec8c3 to your computer and use it in GitHub Desktop.
Save balu/5c16a42314bf91eab1ec8fab3b9ec8c3 to your computer and use it in GitHub Desktop.
  1. Write a function that takes three boolean values and produces a boolean value that is True iff exactly two of its inputs are true.

  2. What is the result of the comparison 2 < 3 < 4. Try different examples of such chains of comparisons. Do they match your intuition?

  3. What is the result of 3 < True? Comment on the observed result.

  4. What is the result of 2 < 2.000000000000000000000000000000000001? Comment on the observed result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment