Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save quietguyproductions/a30fc5e61c9f92fbf19d8af6e3f8a28b to your computer and use it in GitHub Desktop.

Select an option

Save quietguyproductions/a30fc5e61c9f92fbf19d8af6e3f8a28b to your computer and use it in GitHub Desktop.
Example Function
def split_on_comma(x):
# replace the code below with code that solves the problem
return x.split(',')
@BGsharpe

Copy link
Copy Markdown

Screenshot 2022-03-29 2 30 47 PM

@quietguyproductions

Copy link
Copy Markdown
Author

Great job figuring out the function definition! The error you're now seeing happens because you passed an invalid argument (an argument is another way of saying "value of an input variable"). I suggest doing a google search for python string methods, or examining the method's help documentation in the terminal

@BGsharpe

Copy link
Copy Markdown

Screenshot 2022-03-29 2 55 26 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment