23
wo.tomasz
8 24 36
3096/ 3195
Tomasz Wójcik
Last seen 5 days ago
Member for 4 years, 2 months, 25 days
Difficulty Normal
Best reviews / Newest reviews
First and Last-obone 1
Use strftime("%A") instead of array with days names More
First-Mroovka 1 1
I believe that it can be done more easily. You don't need a special case for len (array) == 1: the code in 'else' will do the same More
First-Mroovka 1
You have a similar situation with "if i == 0:" and "elif i% 2 == 0" More
simulator-Tinus_Trotyl 1
Better is use "isdigit()" then key in '0123456789' More
First-ninjagozhane 1
In my opinion better is use if statement then try in this case More
First-trang_a2k100 1 1
return your condition directly More
First-Lemur21 1
You can use math.gcd() instead define own one More
while and sum-kdim 1
I think it's better to use the // operator instead of casting to str More
.replace() or re.sub()-lucas.stonedrake 1
I think that re.sub() only makes sense when you use a regular expression. If everything fits, you better use replace(). More
string, replace-IliaLiash
I think it is better to work with objects than to treat objects as text. More
1 line-Sebdidier
I think it is better to work with objects than to treat objects as text. More
Repr-JasonVoorhees666
I think it is better to work with objects than to treat objects as text. More
regex-pbPy
Any import should be on top of file More
First-Oleg_Levonjuk
I think this solution too complicated. The most frequent day of the week of the year is the last day of the year :) When there is a common year of such days, we have 2. More
Recursion-JumpCutter
Probably the shortest solution to this task :) More
First-Kyrylo_Kireiev
Why don't you just return this condition? More
First-Alexander_Samrega
Maybe better is use "set" instead of list already_yield. W that case you don't need check "substring not in already_yield" More
First-Mroovka
counter += 1 looks better in my opinion then counter = counter + 1 More
First-Mroovka
You don't need to check if the string contains "." or "," just replace them with "" More
First-Mroovka
The less "if" in your code make it better. Just return text.isupper() More
1
2