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.
OP solved it, closing.
Glad you've solved it ! ^^
OP solved it, closing
its just function
Maybe I haven't understood the task correctly, but I still can't understand how this works 🤔
You can also include .strip() to remove any leading, and trailing whitespaces.
.Length returns the total length of the string starting from 1. We need to access the index which begins at 0. If we wanted to access the last index of the original string it would be Length-1. Since we want to cut the last character off, we use -2. Hope that helps
It's not generally possible to tell whether something is a square just by looking at lenghts of its sides. Rhombus is a thing too.
No sample tests either, please read docs how to author kata's
No random tests.
Approved.
Fun, with multiple ways to solve
Please use spoiler flag next time, your post was visible in the homepage.
This comment is hidden because it contains spoiler information about the solution
😶 I mean.. That's a solution.. constant runtime and all
Loading more items...