Feb. 26, 2024, 8:42 p.m. |
+ 1 |
for Comment
Phil15: Nice mission for which I have feedback: What if a text has two consecutive spaces? Your solution wou...
|
Dec. 12, 2023, 3:01 p.m. |
+ 1 |
for Comment
marcopunteri: i like the idea of a mission chain with a step-by-step logic, but imho these are the worst missions ...
|
July 2, 2023, 1:28 p.m. |
+ 1 |
for Comment
Mishytca: одно из самых красивых и коротких решений задачи. Функция checkio() получает на вход параметр num в ...
|
June 19, 2023, 8:39 a.m. |
+ 1 |
for Comment
veky: As I said [above](https://py.checkio.org/forum/post/15744/series-about-oop/#comment-122104), that al...
|
June 16, 2023, 11:58 a.m. |
+ 1 |
for Comment
veky: I'm not sure, but I think using getvalue while StringIO is still open might give you unexpected resu...
|
June 16, 2023, 9:45 a.m. |
+ 1 |
for Comment
Phil15: I forgot to divide by 100 in the 7th mission (I know it's dumb). When we are wrong, our result is di...
|
June 1, 2023, 2:51 p.m. |
+ 1 |
for Comment
veky: Read my comment below. "Bad OOP" usually means contrary to a single overarching philosophy, but ther...
|
June 1, 2023, 1:28 p.m. |
+ 1 |
for Comment
veky: Sure, but the task text is wrong. > 4.1. Add the working_engine **class attribute** inside the Car c...
|
June 1, 2023, 7:37 a.m. |
+ 1 |
for Comment
veky: There is no single OOP philosophy. Today people who think their notion of OOP is the right one usual...
|
May 31, 2023, 11 p.m. |
+ 1 |
for Comment
juestr: OOP 4, how to display the message "Engine has started"? I used a print statement initially, but it w...
|
May 31, 2023, 5:29 p.m. |
+ 1 |
for Comment
Phil15: So this is the kind of mission where the mission author works more than 10 users separately, fine wi...
|
May 31, 2023, 4:34 p.m. |
+ 1 |
for Comment
veky: Yeah, I don't really like those missions because they seem fundamentally different from other missio...
|
Feb. 11, 2023, 12:18 p.m. |
+ 1 |
for Comment
juestr: Yes the start-with-zero approach is much better, this makes the first `-` a proper subtraction. In t...
|
Feb. 11, 2023, 12:18 p.m. |
+ 1 |
for Comment
CDG.Axel: Try to press that keys on any calculator - result will be '0', not '10'. I have only one 'real' calc...
|
Feb. 8, 2023, 6:01 p.m. |
+ 1 |
for Comment
lisovsky: Nice solution! Nothing to add.
|
Jan. 14, 2022, 11:53 p.m. |
+ 1 |
for Comment
olevoniuk: Nice solution! Cool example of using Python "batteries". 8-)
|
Dec. 1, 2021, 6:31 p.m. |
+ 1 |
for Comment
CDG.Axel: you need no walrus and if-comprehension: return sum( max(0 ,(min(d2, end_watching or d2) - max(d1, s...
|
Feb. 27, 2021, 4:31 p.m. |
+ 1 |
for Comment
vvm70: In 15 line no need for [:2]. KvaNTy's code more simple.
|
Jan. 31, 2021, 8:08 p.m. |
+ 1 |
for Comment
SasuH: Took a few reads to understand. Clever solution.
|
Dec. 9, 2020, 4:10 p.m. |
+ 1 |
for Comment
MuxaJlbl4: Cool! I like this useage of groupby
|
Dec. 9, 2020, 4:10 p.m. |
+ 1 |
for Comment
Paul-Yuchao-Dong: I was thinking on the same lines, just don't want to construct some unreadable regex pattern. But yo...
|
Oct. 26, 2020, 1:26 p.m. |
+ 1 |
for Comment
t4d3uszk: There's no need to go through every day in a year. It is enough to check only the first and the last...
|
Aug. 14, 2020, 4:35 p.m. |
+ 1 |
for Comment
Phil15: Interesting feature but I noticed a few things. - "DeprecationWarning: fractions.gcd() is deprecated...
|
July 25, 2020, 3:53 p.m. |
+ 1 |
for Comment
joseke: I didn't know that you could define a function on a single line, I also didn tknow that you could us...
|
July 9, 2020, 5:39 p.m. |
+ 1 |
for Comment
r_tchaik: Nice solution. I like it.
|
June 10, 2020, 5:02 p.m. |
+ 1 |
for Comment
r_tchaik: Very nice! Didn't know about this module.
|
April 6, 2020, 10:28 p.m. |
+ 1 |
for Comment
PHANTOM0308: Damn! Neat and concise. I was thinking the same way as you, but not as short as yours!
|
Jan. 30, 2020, 11:29 a.m. |
+ 1 |
for Comment
mailsiraj: You could have avoided the 2 calls to result.append like this: def remove_all_after(items: list, bor...
|
Nov. 11, 2019, 5:40 p.m. |
+ 1 |
for Comment
veky: "Weird things you shouldn't say about Python", especially if you really don't know what you're talki...
|
July 3, 2019, 2:28 p.m. |
+ 1 |
for Comment
R2R: Educational though
|
April 25, 2019, 10:49 a.m. |
+ 1 |
for Comment
BrianMcleod: I like `[*it]`. I used `list(it)`. I didn't know `[*it]` would do the same thing.
|
April 25, 2019, 10:49 a.m. |
+ 1 |
for Comment
veky: It's relatively new, you don't need to feel bad about not knowing about it. :-) https://www.python.o...
|
April 22, 2019, 3:55 p.m. |
+ 1 |
for Comment
veky: Yeah, extremely new -- not even [10 years old](https://www.python.org/dev/peps/pep-0380/) yet. :-P
|
April 22, 2019, 12:18 p.m. |
+ 1 |
for Comment
veky: Again you have the same problem. a = [] a.append(a) How deep is `a`? :-P
|
April 16, 2019, 9:01 p.m. |
+ 1 |
for Comment
veky: Please don't invoke pip as a separate command. It could easily get dissociated from your Python inst...
|
April 16, 2019, 8:57 p.m. |
+ 1 |
for Comment
veky: Since I am probably the guiltiest for introducing golfing to CiO, let me say something in my defense...
|
Feb. 15, 2019, 3:07 p.m. |
+ 1 |
for Comment
oduvan: I believe in purpose of Creativity :)
|
Jan. 24, 2019, 10:16 a.m. |
+ 1 |
for Comment
gileadslostson: Lambdas and descriptors? Oh my! ;) Very nice =)
|
Jan. 21, 2019, 2:18 p.m. |
+ 1 |
for Comment
veky: No bugs (except you're missing "said" at one spot), but it's horribly complicated without any reason...
|
Jan. 21, 2019, 2:18 p.m. |
+ 1 |
for Comment
veky: If by "new" you mean "solved by composing two builtin methods", yeah. :-P
|
Dec. 11, 2018, 9:19 p.m. |
+ 1 |
for Comment
Phil15: I did use yield from too but I prefered `yield from reversed(run)` to slicing making a copy. I quibb...
|
Oct. 4, 2018, 2:50 p.m. |
+ 1 |
for Comment
veky: Oh man, I was trying to understand this comment for quite some time and got somewhere, but it's stil...
|
Sept. 28, 2018, 3:01 p.m. |
+ 1 |
for Comment
veky: In _requiring_ iterators. The mission existed fine for a long time. Once you realized that it can be...
|
Sept. 27, 2018, 9:37 a.m. |
+ 1 |
for Comment
veky: I guess you've seen [my solution](https://py.checkio.org/mission/multicolored-lamp/publications/veky...
|
Sept. 26, 2018, 6:29 p.m. |
+ 1 |
for Comment
veky: > Don’t be sorry, but please listen :) I’m by no means the smartest either and this whole discussion...
|
Sept. 26, 2018, 1:17 p.m. |
+ 1 |
for Comment
quarkov: Perhaps it's worth CiO administration to consider holding a kind of conference with the most respect...
|
Sept. 26, 2018, 11:44 a.m. |
+ 1 |
for Comment
przemyslaw.daniel: I can fully undertsand your frustration because it was the same in my case. Almost all tasks on this...
|
Sept. 26, 2018, 11:34 a.m. |
+ 1 |
for Comment
veky: As I said and said all over again, it's not about mistakes, it's about reaction when mistakes are fo...
|
Sept. 23, 2018, 9 p.m. |
+ 1 |
for Comment
veky: Absolutely. But that requires the task setter to actually be there, to listen to complaints, and to ...
|
Sept. 22, 2018, 9 p.m. |
+ 1 |
for Comment
veky: CiO helped you - great! Can you be more precise - in what way? :-) As far as raw task solving goes, ...
|
Sept. 22, 2018, 8:54 p.m. |
+ 1 |
for Comment
veky: What makes you think that "updating the task description" (really, making a new task similar to this...
|
Sept. 17, 2018, 2:12 p.m. |
+ 1 |
for Comment
V.Shkaberda: These are examples of answers the function returns (=solutions) and test messages: * `True` gives _Y...
|
Sept. 17, 2018, 2:11 p.m. |
+ 1 |
for Comment
V.Shkaberda: Why one have to use specific datatypes in answer? For example, in [The Fastest Horse](https://py.che...
|
Sept. 14, 2018, 2:18 p.m. |
+ 1 |
for Comment
quarkov: Here's a good place for those who know regexes a little and/or have difficulties with somebody's reg...
|
Sept. 9, 2018, 12:37 p.m. |
+ 1 |
for Comment
veky: There are videos about that, too. :-) Things become more clear when you grasp the message behind htt...
|
Sept. 9, 2018, 12:36 p.m. |
+ 1 |
for Comment
hanpari: Actually, the statement that "design patterns are sign of a weakness..." is bottom line of the link ...
|
Sept. 4, 2018, 11:51 a.m. |
+ 1 |
for Comment
flpo: I agree with @fed.kz . Task description states: > Your task is to count the minimal area of the rect...
|
Sept. 3, 2018, 10:08 a.m. |
+ 1 |
for Comment
flpo: This is just to point out that the test cases are rather weak :-)
|
Sept. 3, 2018, 10:08 a.m. |
+ 1 |
for Comment
veky: ... on so many levels. :-P
|
Sept. 1, 2018, 1:34 p.m. |
+ 1 |
for Comment
V.Shkaberda: What is the main purpose of these tasks? I mean all tasks on this site. I believe it's an education....
|
Aug. 29, 2018, 5:21 p.m. |
+ 1 |
for Comment
oduvan: I'll do my best for moving everything to 3.7
|
Aug. 27, 2018, 6:39 p.m. |
+ 1 |
for Comment
hanpari: You are right. I have read few books on design patterns in Python and all the time I saw Java in dis...
|
Aug. 27, 2018, 6:37 p.m. |
+ 1 |
for Comment
veky: So you think this is just a coincidence? Well, of course I can't prove anything, but my model is ver...
|
Aug. 27, 2018, 2:51 p.m. |
+ 1 |
for Comment
m_vv: your code made text.lower().split() on each iteration. You can make more optimal solution.
|
Aug. 27, 2018, 2:46 p.m. |
+ 1 |
for Comment
Villentre: Why not just "return first == second"?
|
Aug. 26, 2018, 7:17 p.m. |
+ 1 |
for Comment
veky: If I could somehow bypass that Random Review, I might comment on that solution. :-P Oh yes, one more...
|
Aug. 25, 2018, 10:54 p.m. |
+ 1 |
for Comment
veky: > I know, and I’m sorry for this. Sometimes It takes too much time to keep the service alive. Well, ...
|
Aug. 25, 2018, 8:58 a.m. |
+ 1 |
for Comment
veky: I think you posted the same link twice. But then again, maybe that's exactly the point of your post....
|
Aug. 23, 2018, 9:50 p.m. |
+ 1 |
for Comment
veky: First let me emphasize that I'm very glad we're discussing this. I was very afraid this radio silenc...
|
Aug. 23, 2018, 8:41 p.m. |
+ 1 |
for Comment
veky: For the same reason a long time ago requirement to use lists was a bad idea. Python is a duck typed ...
|
Aug. 23, 2018, 3:20 p.m. |
+ 1 |
for Comment
veky: Enough meaning he's not feeling his duty to be converting Dropbox to Py3. Disappoint? Yes, of course...
|
Aug. 23, 2018, 3:15 p.m. |
+ 1 |
for Comment
veky: I'm sure @V.Shkaberda meant it as sarcasm. But I'm not sure how @likewind will understand it. :-O
|
Aug. 23, 2018, 2:47 p.m. |
+ 1 |
for Comment
V.Shkaberda: Good work! But you missed a couple, I'll help: * Flatten a List (function version) * Flatten a List ...
|
Aug. 23, 2018, 10:57 a.m. |
+ 1 |
for Comment
Gabbek: I don't really understand the last example: atoms('(CH3COO)2Ca', 4) == ['H', 'O'] . Could you please...
|
Aug. 17, 2018, 9:49 a.m. |
+ 1 |
for Comment
veky: min((x for x in iterable if x is not None), default=None) Really not necessary to make another whole...
|
Aug. 16, 2018, 4:16 p.m. |
+ 1 |
for Comment
hanpari: I believe you forgot to mention: https://pypi.org/project/six/
|
Aug. 12, 2018, 11:17 a.m. |
+ 1 |
for Comment
hanpari: Rather stop writing unnecessary classes just because they are necessary in other languages. :)
|
Aug. 11, 2018, 9:22 a.m. |
+ 1 |
for Comment
veky: Let it be said (@oduvan will probably remember) that I warned this will happen, the moment admins an...
|
Aug. 10, 2018, 8:40 p.m. |
+ 1 |
for Comment
Sim0000: Python 3.7 has been released. It seems good to have a mission to introduce new features added in Pyt...
|
Aug. 10, 2018, 8:05 p.m. |
+ 1 |
for Comment
hanpari: Well, what about make your Color class more like interface using: https://docs.python.org/3/library/...
|
Aug. 10, 2018, 7:56 p.m. |
+ 1 |
for Comment
veky: You're aware that both can be solved with the same code? :-P
|
Aug. 10, 2018, 7:55 p.m. |
+ 1 |
for Comment
veky: Ok, this is just wrong. You take a mission, which I have solved a long time ago, and now make two mi...
|
Aug. 6, 2018, 4:29 p.m. |
+ 1 |
for Comment
von.Oak: Hi, nice idea with using `list` object class VoiceCommand(list): def __init__(self, channels): super...
|
Aug. 1, 2018, 6:04 p.m. |
+ 1 |
for Comment
veky: The author is writing Java. Yes, you can write Java in Python. :-P Well, I know Eliezer's style, but...
|
Aug. 1, 2018, 6:04 p.m. |
+ 1 |
for Comment
veky: He probably ran it on Py2. Which is simply unforgivable for someone having an orange A next to their...
|
July 29, 2018, 11:19 a.m. |
+ 1 |
for Comment
Gabbek: Very creative one. Nothing worse than a 4 years old code review, but hey! :D
|
July 21, 2018, 5:16 p.m. |
+ 1 |
for Comment
jbwb: Neat solution! Unfortunately, I couldn't get this algorithm to work with red words that have double ...
|
July 21, 2018, 10:55 a.m. |
+ 1 |
for Comment
Gabbek: I always like to look how DFS is written. Liking the use of defaultdict.
|
July 21, 2018, 10:55 a.m. |
+ 1 |
for Comment
Gabbek: Clean and readable.
|
July 21, 2018, 10:50 a.m. |
+ 1 |
for Comment
Gabbek: Interesting one liner! Love to see new modules being used. Hope to talk to you a bit more in upcomin...
|
July 19, 2018, 8:59 a.m. |
+ 1 |
for Comment
veky: You're aware that you wrote the same thing three times? :-)
|
July 19, 2018, 8:55 a.m. |
+ 1 |
for Comment
MrPod: I thought, it would be better to make my solution fully shown in the window instead of it be 'cut'
|
July 17, 2018, 9:02 a.m. |
+ 1 |
for Comment
veky: Also, while I'm here: https://realpython.com/the-most-diabolical-python-antipattern/ Empty `except:`...
|
July 11, 2018, 7:10 p.m. |
+ 1 |
for Comment
veky: I'm 37. No, that's not it then, I thought you might be 16 or something like that. Maybe Russian cult...
|
June 27, 2018, 9:12 a.m. |
+ 1 |
for Comment
veky: Even that is giving too much credit. I don't know much C# (and I think it's just Microsoft's Java), ...
|
June 26, 2018, 2:52 p.m. |
+ 1 |
for Comment
hanpari: It is actually a nice post. The general problem with design patterns in Python is that Python is not...
|
June 25, 2018, 1:54 p.m. |
+ 1 |
for Comment
veky: There are _some_ usages of them, but yes, they are mostly in the language because Guido was afraid t...
|
June 25, 2018, 1:47 p.m. |
+ 1 |
for Comment
veky: Adapt them to your tasks, but also adapt them to your language. Design patterns from Java don't make...
|
June 20, 2018, 12:07 p.m. |
+ 1 |
for Comment
mihail.ponomaryov: > Simple and clear. Thanks. > For the __repr__ you might want to use f-strings which are awesome =) ...
|
June 14, 2018, 5:31 p.m. |
+ 1 |
for Comment
veky: So why don't you test it? :-P You might it find hard to believe, but concepts from one programming l...
|