I do know what I am doing wrong. In which way I should think to solve this task
def main():
convert_to_snake_case('aLongAndComplexString')
print()
I do know what I am doing wrong. In which way I should think to solve this task
def main():
convert_to_snake_case('aLongAndComplexString')
print()
Place
convert_to_snake_case('aLongAndComplexString')
within the parenthesis of the print()
Watch out for the indentation of print(), it has to be as part of the def
block.
Thank you @anon28508191 it works now but I got crazy with the indentation. May I ask some questions here in this topic or I need to create a new topic for each question?. Please, let me know:
question one: can I use visual studio for the indentation?
question two: can I replace the work Pass with word Copy when I read this " Pass the string 'aLongAndComplexString'
as input to the function"
Thank you
Answer to question one:
By all means. I use my own local editor first, check that the indentation is correct and copy and paste in the webpage exercise. The webpage editor does not give me the same confidence.
Answer to question two:
The phrase “Pass the string …” is a common programming jargon and it refers to the fact that you can “give” arguments (values) to functions, (the thing within parenthesis) or passing to a function a given argument, in this case the literal string “aLongAndComplexString”.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.