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.
Thanks a bunch, I knew I was missing something simple!
Don't use
input()
, use the function's argument to get the input value.This comment is hidden because it contains spoiler information about the solution
What do you return at the end? You need to make a sum, that's all (summation of every number from 1 to num isn't it clear enough?). Also, please use markdown tags to format your code or it's very discomfortable to read, see: how-to-format-code-in-markdown. Indentation is fundamental in Python, we can't even know if your code is syntactically correct.
Capitalize each word yourself, and remove
print
betweenreturn
and what you want to return, that's what's making your function returnNone
.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution