Skip to main content
added 265 characters in body
Source Link
FryAmTheEggman
  • 17.5k
  • 3
  • 40
  • 97

Pyth, 8 bytes

-zr*2hz3

Try it online

Uses Pyth's version of python's str.title to convert a string of the first letter twice into the form "<Upper><Lower>". Then it removes each element from the input that is in that string. Spaces work fine because they are unaffected by str.title.

Pyth, 8

-zr*2hz3

Try it online

Pyth, 8 bytes

-zr*2hz3

Try it online

Uses Pyth's version of python's str.title to convert a string of the first letter twice into the form "<Upper><Lower>". Then it removes each element from the input that is in that string. Spaces work fine because they are unaffected by str.title.

Source Link
FryAmTheEggman
  • 17.5k
  • 3
  • 40
  • 97

Pyth, 8

-zr*2hz3

Try it online