Skip to content

Instantly share code, notes, and snippets.

@amdevine
Created February 12, 2021 21:25
Show Gist options
  • Select an option

  • Save amdevine/eb7fdcdc479ad9a61a967e0be4970ed5 to your computer and use it in GitHub Desktop.

Select an option

Save amdevine/eb7fdcdc479ad9a61a967e0be4970ed5 to your computer and use it in GitHub Desktop.
Translate characters to strings in Python with `str.maketrans()` and `str.translate()`
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment