I think this is because range returns a list in python 2.7, whereas in python3, it returns an iterator, which needs to be casted to a list.
Worked fine for me, code issue?
I thought this solution was nice and neat but when I try to run it in Jupyter, it doesn't perform as expected. I get 'Beautiful is better than ugly.\nExplicit is better than implicit.\nSimple is better than complex.\nComplex is better than complicated.' I copy and pasted the above code so why doesn't the "\n" actually print a new line? I've run into this issue before (I'm still a newb) where I've tried to use "\n" and instead of it printing a new line, it prints \n within the string. Can anyone explain why this is occurring?
Thanks for any insight!
Cool, thanks for spotting it, Tachyon :)
Happy now. :-)
No, try now.
Right, thanks: Python fixed
Using assert_equals in Python's random tests.
In Python, do you really want this much precision?
Testing for 0.93 and 357
It should work for random inputs too:
14.285714285634262 should equal
Thank you very much, I just approved it!
Julia translation kumited
Each time when I run submit tests I get random test failures but when I try to run the same test in test playground it works for me. And the pressKeyCount in the failed test could be different, it includes a small number and number greater than 88
-> GO lang
The sample tests are expecting the function to be named encrypt rather than initials.