43
kdim
17 43 60 Leader of the month
13183/ 14193
Dmitry Khromenko
Last seen 1 hour ago
Member for 3 years, 4 months, 28 days
Difficulty Normal
I study Python myself and help my son and daughter learn programming.

Best reviews / Newest reviews
Findt-StefanPochmann
Proper use of logical operators! More
First-PelmenFloopov 1
len(items) // 2 + 1 if len(items) % 2 != 0 else len(items) // 2 you can change to len(items) // 2 + len(items) % 2 boolean expression is recognized as a number More
find_divisors function-H0r4c3 2 1
Suitable place to use **yield** def find_divisors(n): for i in range(1, n): if n % i == 0: yield i More
Regex FTW!-H0r4c3 1 1
Good use of RE. Why didn't you use ''.join()? More
One liner-amandel 1 1
pretty "num>0", otherwise nothing to add More
super short one liner!-tamagoyaki 1 1
sum([]) can be used without square brackets sum(), its more shorter More
First-moltes14 1
You can change "len(str(new_sum))>1" to "new_sum > 9" More
f-string-kdim
``` 0| a 1|<--x-->b * 2| c * 3| d n 4| e<--y-->m 5| f l 6| g k 7| h j n| i ``` s = side -1 x = abs(s-n) y = 2s-2abs(s-n)-1 More
combination-Sim0000 1
Good job! Good and clear solution. More
48 symbols proc with prod-CDG.Axel 1
Creative solution! Thanks for __import__! Good luck! More
weird, up to 26-CDG.Axel 1 1
Good job! Where you find information about 48.5 and 48.28? More
First-dig 2 1
instead "total_time = datetime(2010, 1, 1, 1, 1, 1) - datetime(2010, 1, 1, 1, 1, 1)" you can use "total_time = timedelta()" More
First-dig 1 1
You have a good solution! But why didn't they use "rsplit" in "def extension" ? More
Using regex and max() with key-H0r4c3 2 1
You have a non-standard solution! More
replace '[' and ']'-dig 1 1
You have a non-standard solution! More
Try this . . . -Tinus_Trotyl 1
Good use of operators "try\except"! More
First-DronovDen 1
len(set(elements)) == 1 or len(set(elements)) == 0 can replace len(set(elements)) < 2 and the solution could be: return len(set(elements)) < 2 More
First-DronovDen
With functions All() your solution will be more interesting. More
First-DronovDen
Good use of the try\except! "result = []" - its redundant code More
First-DronovDen
I think with slices it will be more logical? More
1
2 3 4 5 6 7 8 9