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.
Finally, a kata that I managed to solve like everyone else! Now I feel Human.
oh how could I miss this
If only this had been written in the age of AI. My solution was posted about 8 years ago.
half man, half AI ^ 300000000000
im 2 years late, but idk this might help someone.
string has indexes just like list (watch tutorials on these concepts!!). so for example i have this word x = 'hello', so indexes start with 0 unless otherwise specified. x[0] = h, x[1] = e, x[2] = l, x[3] = l, x[4] = o
pretty cool
When I tried this (in my vs code ) it gave me ValueError. Can you tell me who this worked !!!. Thanks in advance
retires
See my second sentence above, I think it answers your question
sorry forgot to share
arr = ['lion', 'monkey', 'lizzard']
please try it also
I am curious if you get the same
This comment is hidden because it contains spoiler information about the solution
I checked this in my python concole
loaded this one first:
from operator import contains as check
then:
check("lizzard",arr)
but error:
TypeError: 'in ' requires string as left operand, not list
So this is only good for this kata?
the function "enumerate" is so cool!
Took me a few iterations to get this one liner.
i refused to admit that you guys got this solution the first time you went through
Loading more items...