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.
not sure why these 1 liners are always voted best practice. i think they are more so clever. still very nicely done! will take a half hour to study this now lol
IT WAS ALMOST TOO NUTTY FOR ME
study on what self does, and how instances of classes work
there is only 1 object tested. example:
x = Arith("five")
print(x.add("seven"))
this should return "twelve"
interesting! The behaviour of indexing helps :)
its a bit nutty..
xd
nice
Enjoyed this one!
This comment is hidden because it contains spoiler information about the solution
man I was working on a similar solution that failed:
for letter in s:
if letter == "x" or "X":
sum += 1
Could you explain why my answer fails ?
I am guessing its because I cannot compare 2 values at the same time to an iterator (letter) ?
This comment is hidden because it contains spoiler information about the solution
took me 8 hours to complete
This comment is hidden because it contains spoiler information about the solution
Same ! :D
So you are saying, dont name variables, that are within a def, important names that have other uses? Example dont create a variable named Str, Int, Float etc