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.
me too, lets be dumb friends
Not a kata issue, your function isn't returning the result. Please read this: https://docs.codewars.com/training/troubleshooting/
Hi @billthe1only and welcome to Codewars!
The description says "the dish must start and end with the same letters as the animal's name."
So you must compare the first and last letters of both the input strings. For example, "aoooooox" and "ammmx" are two strings which both start with
a
and end withx
.Since you're working in Python, make sure you know how to access the first character in the string -
beast[1][0]
might not be doing what you want it to: if you print"abcd"[1][0]
in your computer you'll see that it prints the letterb
not the lettera
since the index1
corresponds to the second letter in the string.edit - just to explain the test behavior also:
feast(iidufwhfqezmhkbugjfiifxixfeczd, ihstqcxpgkylryzlvhqywxe)
here the first string begins with "i" and ends with "d". The second string begins with "i" but ends with "e" not "d". So your solution should return "False" for this particular test.That's because you changed something else between that code and your current one, read this: https://docs.codewars.com/training/troubleshooting#expected-the-same
The period is outside the quotes, so it doesn't belong to the string.
You're wrong. Remove the periods from your sentences. Not a kata issue.