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.
I went with the if statement but when I went to grab the index I was getting '0'. This is true because once needle is found, needle was all I had to work with. You are close but lose the if statement.
This comment is hidden because it contains spoiler information about the solution
Mark your post as having spoiler content when it does and use proper markdown
Find how to put a var value in a string in Python (there is more than one way), what you did won't work.
Because you're calling
int("")
.Issue
's are kata-related, If your code is not working correctly, usequestion
tag instead.Probably you're printing the result instead of returning it.