Tell us what’s happening:
Describe your issue in detail here.
In this project, you are going to learn about list comprehensions in Python by building a program that can take a camelCase or PascalCase formatted string and convert that to a snake_case formatted string.
List comprehensions in Python are a concise way to construct a list without using loops or the .append() method. Apart from being briefer, list comprehensions often run faster.
Start defining a new function named convert_to_snake_case() that accepts a string named pascal_or_camel_cased_string as input.
I think i made it right but dont know why it not work
Your code so far
def convert_to_snake_case(pascal_or_camel_cased_string):
# User Editable Region
def convert_to_snake_case(pascal_or_camel_cased_string):
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Challenge Information:
Learn Python List Comprehension By Building a Case Converter Program - Step 1