Write a python function to convert a user provided string to camelcase


Topic: Write a python function to convert a user provided string to camelcase

Solution

from re import sub
def camel(s):
  s = sub(r"(_|-)+", " ", s).title().replace(" ", "")
  return ''.join([s[0].lower(), s[1:]])



List all Python Programs