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.
range function fails if the second condition is lower than the first. For ex in the code, range(10, 5) , this wouldnt be able to create that range.
OP solved it, closing
One liners aren't common practice in production. Hard to read, prone to bugs. You really don't need a for loop here as you mainly need to specify the larger of the two numbers (math is weird I know) and run the SUM for the numbers in the RANGE.
I have a question. I am new to coding and finding one part confusing. Why does we switch the a and the b in the second and third elif statments. I guess Im confused on why it matters if a is bigger than b or if b is bigger than a.
let us just hope, that the earthquake will never strike with 4 waves :-)
You're strong man)
Add more spaces. But it's good. Nice sol man
good boy
It worls for me as well, same code from a beginner :)
I have a similar code. I took me forever lol
This is most useful for beginner
cleanest solution
gut
This is a very basic code, how it got 17 clever votes.
Loading more items...