We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sum([k for k in range(100)])
output: 4950
The reference said output: 5050 Which would be
sum([i for i in range(101)])
The text was updated successfully, but these errors were encountered:
The second example of sigma is also wrong. The result should be 10200. Better define a custom function instead of using range like so:
range
def my_range(i): return([k+1 for k in range(i)])
and then call
sum([2*k + 1 for k in my_range(100)])
Sorry, something went wrong.
No branches or pull requests
output: 4950
The reference said output: 5050
Which would be
The text was updated successfully, but these errors were encountered: