Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Python question:
def arr(n):
list=[]
i = 0
if not n:
return ([])
else:
while i < n:
list.append(i)
i = i+1
return (list)
any suggestions on why im getting an error:
TypeError: arr() missing 1 required positional argument: 'n'
Could be a simple mistake, as I'm new to Python
there is a bunch of additional checks run when you make an 'attempt' - at 'test' it just checks the expected functions have been used, but it doesn't check the retured table values are matching the criteria, it does it at the 'attempt'
I actually did and it passed through. I would normally use REGEXP_EXTRACT if that wasn't postgre. The most common/simple solution is different though :)