Expelling camels from the codebase 🐫

Imagine the classic pain: you're integrating with a third-party API (or parsing data from frontend developers), and you receive a JSON where keys are named all over the place.

Your task is to write a function that takes a string in kebab-case (dash-notation), camelCase, or UpperCamelCase and converts this mess into the righteous PEP8-compliant snake_case.

Examples:
"python-talk" -> "python_talk"
"pythonTalk" -> "python_talk"
"PythonTalk" -> "python_talk"


Write your snippets in the comments, let's see who's got what it takes 👇

#algosobes