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.
I can't speak for your pycharm difference, but I know you will get the expected
1
if your parentheses are in the right placepycharm result = 3
pytho console = 0
expected = 1
what's in this comment does not match what your pycharm image shows
thanks for idea.
but I found an issue:
console
import math
print (math.fabs(-9223372036854775807)%2)
0.0
PyCharm:
https://clip2net.com/s/42YI9QB
have you tried printing the input?
Python. Attempt stage: all tests are passed, except this one
" 0 should equal -9223372036854775807 "
and I can't see the initial list to check my code.
I just solved this challenge and it's the first time ever that my solution is the shortest one. :)
An inline reference solution like this can be displayed in error messages if a user changes the solution function name.
(Double post deleted.)
Fixed.
I'm not sure about how necessary fixed tests are in a simple case like this, but the return type in the initial solution should definitely be
int
and indentation should be consistent.Basic / Fixed tests should be in test cases too.