Oct. 30, 2016, 6:57 p.m. |
+ 1 |
for Comment
veky: Look at the title. :-)
|
Oct. 30, 2016, 6:57 p.m. |
+ 1 |
for Comment
veky: That's not a generator, it's a comprehension. :-)
|
Oct. 30, 2016, 5:47 p.m. |
+ 1 |
for Comment
belousovpf: Oh, i'm sorry for not explaing my problem. I have already solve it. I should delete 5 and 6 line, an...
|
Oct. 30, 2016, 5:47 p.m. |
+ 1 |
for Comment
belousovpf: where can I mark it so? in title?
|
Oct. 29, 2016, 7:44 p.m. |
+ 1 |
for
First-Thenbacker
|
Oct. 29, 2016, 5:24 p.m. |
+ 1 |
for Comment
Sim0000: In line 9, x.sort() is None. array.sort() sort array self then return value is None. You need to use...
|
Oct. 29, 2016, 5:22 p.m. |
+ 1 |
for Comment
Lociinthesky: Thanks, Dahlia. Do you have anything to tell me about creating tags in my future posts?
|
Oct. 29, 2016, 5:07 p.m. |
+ 1 |
for
Encode and check-veky
|
Oct. 29, 2016, 5:04 p.m. |
+ 1 |
for Comment
veky: I think even you'd agree that this is almost the same idea as "Encode and check", only with three la...
|
Oct. 28, 2016, 8:47 p.m. |
+ 1 |
for
FIzzBuzz-DillonKo
|
Oct. 28, 2016, 8:47 p.m. |
+ 1 |
for Comment
veky: Why parens? You can even say if not number%15: without parens.
|
Oct. 28, 2016, 8:46 p.m. |
+ 1 |
for Comment
DillonKo: Hey Veky, I wanted to make them more readable. Thanks for your input on my solutions. I look forward...
|
Oct. 28, 2016, 8:46 p.m. |
+ 1 |
for Comment
veky: Your goal is noble, but readability is often achieved by removing symbols, not by adding them. You d...
|
Oct. 28, 2016, 8:39 p.m. |
+ 1 |
for Task
Striped Words
|
Oct. 28, 2016, 5:33 p.m. |
+ 1 |
for Post
Introduction and Progressing Through Levels
|
Oct. 28, 2016, 5:33 p.m. |
+ 1 |
for Comment
kurosawa4434: Hi, Lociinthesky. Please see: [Global variables](https://py.checkio.org/forum/post/3269/6-the-most-c...
|
Oct. 28, 2016, 5:29 p.m. |
+ 1 |
for Comment
oduvan: On All Solutions page you should have a sub-filter followers. This is what you are looking for. You ...
|
Oct. 28, 2016, 5:23 p.m. |
+ 1 |
for Comment
Nick_Perez: Iirc, it was the first one at the home. so I guess that would be non unique elements. Sent from my S...
|
Oct. 28, 2016, 5:14 p.m. |
+ 1 |
for Comment
Nick_Perez: It was the first mission you can do. Sent from my Samsung Galaxy smartphone. -------- Original messa...
|
Oct. 27, 2016, 6:16 p.m. |
+ 1 |
for Post
Seeking guidance on solving a simple(?) problem
|
Oct. 27, 2016, 6:16 p.m. |
+ 1 |
for Comment
DaveDiFranco: You could use https://docs.python.org/3/library/itertools.html#itertools.product to get all the comb...
|
Oct. 27, 2016, 6:14 p.m. |
+ 1 |
for Post
guy knows what he's doing
|
Oct. 27, 2016, 6:12 p.m. |
+ 1 |
for Comment
Sim0000: In general, we can not remove item from array using for loop in Python. See [FAQ](https://py.checkio...
|
Oct. 27, 2016, 6:08 p.m. |
+ 1 |
for Comment
Sim0000: When i == 0 and n != 0, your code returns "-1" in line 6. The main reason is misuse of **else**. Cor...
|
Oct. 26, 2016, 6:42 p.m. |
+ 3 |
for
First-UFO665
|
Oct. 26, 2016, 6:10 p.m. |
+ 1 |
for Comment
DaveDiFranco: For the large test, in line 3 you're creating a list with 1,000,000,010 elements. That's at least a ...
|
Oct. 25, 2016, 9:16 p.m. |
+ 1 |
for Task
Open Labyrinth
|
Oct. 25, 2016, 6:39 p.m. |
+ 1 |
for Comment
_________________853: Thanks for the help
|
Oct. 25, 2016, 6:39 p.m. |
+ 1 |
for Comment
Sim0000: If the phrases have same word with last word, your code will fail. You need to know about Python's *...
|
Oct. 24, 2016, 8:02 p.m. |
+ 1 |
for
Short-moddom
|
Oct. 24, 2016, 8:01 p.m. |
+ 1 |
for Comment
moddom: it's really creative :)
|
Oct. 24, 2016, 6:33 p.m. |
+ 1 |
for Comment
oduvan: @kurosawa4434 is an author
|
Oct. 24, 2016, 6:33 p.m. |
+ 1 |
for Comment
kurosawa4434: Thank you! and I send pull request: 1. add style "font-family: 'Courier New';" to elements. * MS-Win...
|
Oct. 24, 2016, 6:32 p.m. |
+ 1 |
for Comment
veky: "Distance" is number of steps, or Euclidean distance?
|
Oct. 23, 2016, 8:01 p.m. |
+ 1 |
for Comment
rogalicue: That's why i'm asking. I would appreciate any help! And excuse me please if my english is bad. :)
|
Oct. 23, 2016, 6:46 p.m. |
+ 1 |
for Comment
veky: Don't write empty excepts!
|
Oct. 23, 2016, 6:05 p.m. |
+ 1 |
for Post
A new mission "Find Enemy"
|
Oct. 23, 2016, 5:56 p.m. |
+ 1 |
for Task
Index Power
|
Oct. 23, 2016, 5:44 p.m. |
+ 1 |
for Comment
Sim0000: Since given argument is **set**, I think this is not a bug.
|
Oct. 23, 2016, 5:43 p.m. |
+ 1 |
for Comment
Sim0000: At first, indentation is not good. I guess copy&paste miss. You need to initialize your **defender1*...
|
Oct. 23, 2016, 5:43 p.m. |
+ 1 |
for Comment
kurosawa4434: line: 5-6 defender1 = 0 defender2 = 0 These codes should be inside of loop.
|
Oct. 21, 2016, 6:29 p.m. |
+ 1 |
for Comment
milanandreewdev: Thank you!
|
Oct. 21, 2016, 6:29 p.m. |
+ 1 |
for Comment
Sim0000: Since your code is too slow, system abandon execution. You need to speed up your code.
|
Oct. 21, 2016, 6:28 p.m. |
+ 1 |
for Comment
DaveDiFranco: Break down the problem. First, write a function to calculate the probability of die a vs die b. The ...
|
Oct. 21, 2016, 6:26 p.m. |
+ 1 |
for Comment
veky: Here is a controversial suggestion: do it by hand. See if you really understand all the steps. See i...
|
Oct. 21, 2016, 6:26 p.m. |
+ 1 |
for Comment
DaveDiFranco: The task description gives detailed steps, and the example output of each step. Write your program i...
|
Oct. 21, 2016, 6:25 p.m. |
+ 1 |
for Comment
milanandreewdev: Thanks man.
|
Oct. 21, 2016, 6:20 p.m. |
+ 1 |
for Comment
costia: ohh and thanks for your replay, I fixed it :)
|
Oct. 21, 2016, 6:20 p.m. |
+ 1 |
for Comment
costia: yes, I forgot to import math that is why the code did not work
|
Oct. 21, 2016, 6:20 p.m. |
+ 1 |
for Comment
kurosawa4434: line 10-12: lf.append(int(round(math.degrees(math.acos((a * a + b * b - c * c)/(2.0 * a * b)))))) lf...
|
Oct. 21, 2016, 6:05 p.m. |
+ 1 |
for Comment
jacekgrycza: Yes, that was the reason. I improved it and now it works perfectly. Thanks.
|
Oct. 21, 2016, 6:05 p.m. |
+ 1 |
for Comment
DaveDiFranco: I think it's because you're using global variables: nie, tak, s. These are re-used between tests.
|
Oct. 21, 2016, 5:52 p.m. |
+ 1 |
for Comment
zancas: Cool, thanks! Unfortunately the solution I'm looking at isn't mine.
|
Oct. 21, 2016, 5:50 p.m. |
+ 1 |
for Comment
oduvan: congratulation :) You are the first moderator on CheckiO :)
|
Oct. 20, 2016, 8:04 p.m. |
+ 1 |
for Comment
DaveDiFranco: The elements with even indexes are: element 0: 1. element 2: 5. The last element is 5. (1+5)*5 = 30.
|
Oct. 20, 2016, 8:03 p.m. |
+ 1 |
for Post
"Pwn Bro-hood" solution in Clear miscategorized
|
Oct. 20, 2016, 6:09 p.m. |
+ 1 |
for Comment
violet.tk: right. using lambda could make it even shorter.
|
Oct. 19, 2016, 5:45 p.m. |
+ 1 |
for Comment
violet.tk: Thank you! I think this is the shortest.
|
Oct. 18, 2016, 8:52 p.m. |
+ 1 |
for
First-D4m13n5_aceb31c0f4a74af0bc1d5a
|
Oct. 18, 2016, 6:16 p.m. |
+ 2 |
for
Tondo is sorting-violet.tk
|
Oct. 18, 2016, 6:11 p.m. |
+ 1 |
for Comment
veky: Of course, but don't forbid adding new comments to "solved" threads. It saddens me when I see soluti...
|
Oct. 18, 2016, 6:05 p.m. |
+ 1 |
for
Let’s make our forum better
|
Oct. 17, 2016, 7:20 p.m. |
+ 1 |
for Task
Min and Max
|
Oct. 17, 2016, 6:41 p.m. |
+ 1 |
for Comment
AliJoohy: Thank you Sir. for your advice.
|
Oct. 17, 2016, 6:40 p.m. |
+ 1 |
for Comment
veky: You invented a new pattern: iterecursion. :-P And you were very close. You just needed to drop the l...
|
Oct. 17, 2016, 6:37 p.m. |
+ 1 |
for Comment
veky: Why do you think you need line 6? It's an important question. :-)
|
Oct. 17, 2016, 6:37 p.m. |
+ 1 |
for Comment
AliJoohy: Because we have to initialize a variable to take place in memory before we use it. as I think?
|
Oct. 17, 2016, 6:37 p.m. |
+ 1 |
for Comment
veky: Yes, I thought so. Now let me tell you a secret. Python doesn't have variables. Or rather, it has th...
|
Oct. 17, 2016, 6:32 p.m. |
+ 1 |
for Comment
oduvan: We need more question marks here.
|
Oct. 17, 2016, 6:26 p.m. |
+ 1 |
for Comment
oduvan: I was thinking about it as well. Thanks for mentioning.
|
Oct. 17, 2016, 6:26 p.m. |
+ 1 |
for Comment
veky: for loop is the simplest iteration device. There are many others, suitable in apt situations. star-c...
|
Oct. 17, 2016, 6:26 p.m. |
+ 1 |
for Comment
violet.tk: wow. I didn't even need "for" loop :D
|
Oct. 17, 2016, 6:26 p.m. |
+ 1 |
for Comment
veky: True that. I always want to educate people, not solve their problems. it's a professional deformatio...
|
Oct. 16, 2016, 8:16 p.m. |
+ 1 |
for Comment
veky: You want to use a uniform loop, but _don't_ want to do the same thing in every pass. Sounds like a c...
|
Oct. 16, 2016, 8:13 p.m. |
+ 1 |
for Comment
veky: Well, it says that when you invoke your checkio function with 3703, * it returns 18 * it _should_ re...
|
Oct. 16, 2016, 8:10 p.m. |
+ 1 |
for Comment
veky: It is a subtlety of the semantics of the verb "receive". How do you receive it? You see it printed o...
|
Oct. 16, 2016, 5:42 p.m. |
+ 1 |
for Comment
Kolrim: A way to navigate to specific tags that you're interested in. Right now there is only a 'more' butto...
|
Oct. 16, 2016, 5:38 p.m. |
+ 1 |
for Post
i can get through the test on my own pc
|
Oct. 16, 2016, 5:01 p.m. |
+ 1 |
for Comment
oduvan: Yes. But they feel themselves a bit safer when they covered :)
|
Oct. 15, 2016, 7:23 p.m. |
+ 4 |
for
Enum-veky
|
Oct. 15, 2016, 7:05 p.m. |
+ 1 |
for Comment
violet.tk: so it's possible to make shorter if I just "return True" instead of "break" at line 9. Right.. Line ...
|
Oct. 14, 2016, 7:37 p.m. |
+ 1 |
for Comment
DaveDiFranco: You need to _return_ the result, not _print_ it.
|
Oct. 14, 2016, 6:59 p.m. |
+ 1 |
for Comment
veky: Yes, but that's so for naming in general. You usually name some partial (pun accidental) result if y...
|
Oct. 13, 2016, 7:58 p.m. |
+ 2 |
for
First-entropic305
|
Oct. 13, 2016, 7:58 p.m. |
+ 1 |
for Comment
veky: Classical. Could be shortened with functools.partial, as usual. :-)
|
Oct. 13, 2016, 7:56 p.m. |
+ 4 |
for
smn theorem-veky
|
Oct. 13, 2016, 7:39 p.m. |
+ 1 |
for Comment
veky: Builtin pow is actually more **pow**erful than math.pow. :-)
|
Oct. 13, 2016, 7:38 p.m. |
+ 1 |
for Comment
veky: Even better, use an operator. array[n] ** n
|
Oct. 13, 2016, 7:34 p.m. |
+ 1 |
for Comment
kurtkurban: Thank you this is really helpful.
|
Oct. 13, 2016, 6:59 p.m. |
+ 1 |
for Comment
knoerk: Thanks Dave, this worked.
|
Oct. 13, 2016, 6:59 p.m. |
+ 1 |
for Comment
DaveDiFranco: I think the error message is incorrect. The failure is because of the types of the elements in the l...
|
Oct. 13, 2016, 6:58 p.m. |
+ 1 |
for Comment
DaveDiFranco: You don't need to call raw_input. The framework disallows it. You don't need to call your checkio fu...
|
Oct. 13, 2016, 6:50 p.m. |
+ 1 |
for Comment
Scorbie: 1. For others browsing this thread, I wrote a similar (mistaken) post [here](https://py.checkio.org/...
|
Oct. 13, 2016, 6:38 p.m. |
+ 1 |
for
Tondo's words-violet.tk
|
Oct. 13, 2016, 6:34 p.m. |
+ 1 |
for Comment
violet.tk: I have added "else: count = 0" to Line 3. And, I've moved Line 11 to outside of a loop. Also, I real...
|
Oct. 12, 2016, 7:12 p.m. |
+ 1 |
for Comment
DaveDiFranco: Right - the split() should stay.
|
Oct. 12, 2016, 6:50 p.m. |
+ 1 |
for Comment
oduvan: Hi I see some bugs on the screen but in general - workflow is correct. Let me explain :) A long-long...
|
Oct. 12, 2016, 6:37 p.m. |
+ 1 |
for Comment
Sim0000: Do not print the result. Return it.
|
Oct. 12, 2016, 6:06 p.m. |
+ 1 |
for Comment
OMFGNuts: Try to modify words this way, it's alot easier to understand what to do with them. (first_word.repla...
|
Oct. 12, 2016, 6:03 p.m. |
+ 1 |
for Post
Code doesn't work for the "Hi all"\"all hi" input
|