Skip to main content
2 of 3
added 122 characters in body
Peter Taylor
  • 43.1k
  • 4
  • 70
  • 169

CJam (25 24 bytes)

q~e!{_z=},"True""False"?

Online demo. Pretty trivial apart from the specified output, because CJam doesn't have a Boolean type.

With thanks to Sp3000 for saving one stroke.

Peter Taylor
  • 43.1k
  • 4
  • 70
  • 169