Please explain the below Python code to me. This answer works when submitted on CodeWars and I want help understanding the ins and outs of it. What is happening at each step of this program?
from re import split
def camelize(string):
return ''.join(a.capitalize() for a in split('([^a-zA-Z0-9])', string)
if a.isalnum())
Here is a test example:
camelize("example name") # => ExampleName