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.
OMG!!! All I had to do was import string??? I was wondering why this wasn't working. 😤
LOL
Very nice!
This comment is hidden because it contains spoiler information about the solution
just.. wow
then look at this oneliner
This comment is hidden because it contains spoiler information about the solution
wow what a mad lad
this is almost cheat hahaha
yet thanks for letting me know more about string module
why did you import string?
thanks, Mark
did not know of the capwords either, thanks also. I must know of hundreds of commands from various libraries, there are just to much to remember, so i have ways I just do things but i always keep documentation close a hand for when I am stuck. very nice solution
That's an exceptional approach, and a good reminder. No need to reinvent the wheel. :)
=)
how should i write the test cases:
there are whtat i write:
howManyLightsabersDoYouOwn("Zach")
howManyLightsabersDoYouOwn("zhang")
howManyLightsabersDoYouOwn()
but it shows that i didn't past.
(
def howManyLightsabersDoYouOwn(p1=""):
if p1=="Zach":
return 18
return 0
)