49
Sim0000
23 50 65
24346/ 25141
Last seen 3 hours ago
Member for 10 years, 3 months, 3 days
Difficulty Normal
from Japan. hobby programmer. start Python from CheckiO.

Best reviews / Newest reviews
f-string-Sim0000 4
In order to explain what is going on, I rewrote the code. I hope this may help you :-) def time_converter(time): # h, m = map(int, time[:-5].split(':')) splited_time = time[:-5].split(':') # splited_time == "12:30".split(':') == ["12", "30"] h = int(splited_time[0]) # h More
First-junjiru 3 1
You can use int(x, k) to convert k-radix representation to integer. More
First-somanythingstolearn 2 3
Nice! I feel category of this solution should be 3rd party :-) More
Using a small arabic to roman dictionary-LuisLC 2
You can write more simple. for number in key_arabic_numbers: while arabic >= number: arabic -= number roman += arabic_to_roman_dict[number] return roman More simple for number in key_arabic_numbers: n, arabic = divmod(arabic, number) rom More
First-Sim0000 2 1
Oh, I'm quite new in Python (one week Python coder). So, I don't know any about set. Do you have any material for learning Python set? More
First-mxmaslin 2 1
Your code is very incomplete. Because your code fails for following two example. check_connection(('a-c', 'a-b'), 'a', 'b') check_connection(('aa-b', ), 'a', 'b') Unfortunately checkio tests are incomplete. So incomplete code may pass all tests. Your code treat first occurrence of fir More
Mod 9, 8, 7-z_kro 1
You can calculate answer x = (280*a + 441*b + 288*c) % 504, where a = x % 9, b = x % 8, c = x % 7. More
The shortest-MrPod 1 2
You can write all_the_same = lambda e: len(set(e)) < 2 More
non-sophisticated recursive lambda. -Sillte 1 1
You can write how_deep = lambda s: 1 + max((how_deep(e) for e in s), default=0) if isinstance(s, tuple) else 0 or how_deep = lambda s: 1 + max(map(how_deep, s), default=0) if isinstance(s, tuple) else 0 More
with comment-Sim0000 1
By the way, I never thanked @Splitter . Thanks to your appropriate comments, this code was created. More
reduce-Sim0000 1
Important notice! Now we need to use **from math import gcd** More
SciPy Batteries-flpo 1
Nice solution! I recommend you to change category to 3rd party :-) More
log then Halley-Sim0000 1
This code is faster than [previous version](http://www.checkio.org/mission/super-root/publications/Sim0000/python-3/log-then-newton/). See [Halley's method](http://en.wikipedia.org/wiki/Halley%27s_method). More
First-MBM_1607 1
You can write `self.index = (self.index + 1) % 4` instead of line 8-11. More
First-triclosan 1 1
list(item for item in game_result) is same as game_result. More
cheat sheet-gyahun_dash 1 1
Only 14 pattern! Yes, that's right :-) More
First-terryyin 1
Clever set of coordinates solution! More
Dictionary Counts-CMParlett 1 1
You can write return x == y instead last 4 lines. More
First-Laertes 1
You can use str.endswith() for this task. More
Second-coells 1 1
I have checked your code for all 5040 case. Then 5 case need 9 steps (5293, 9204, 9214, 9241, 9431). More
1
2 3 4 5 6 7