Skip to content

Instantly share code, notes, and snippets.

@s-weigand
Last active April 17, 2025 00:23
Show Gist options
  • Select an option

  • Save s-weigand/9fef4773d95419ad93ee273c5fecdb39 to your computer and use it in GitHub Desktop.

Select an option

Save s-weigand/9fef4773d95419ad93ee273c5fecdb39 to your computer and use it in GitHub Desktop.
python mock word formatting
"".join(c.upper() if i % 2 != 0 else c.lower() for i, c in enumerate(input("This word doesn't work like this: ")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment