Oct. 9, 2014, 4:08 a.m. |
+ 1 |
for Post
A Problem with the Math or with the Code?
|
Oct. 9, 2014, 4:08 a.m. |
+ 1 |
for Comment
bunnychai: 4/3 * math.pi * ...
|
Oct. 9, 2014, 4:08 a.m. |
+ 1 |
for Post
what does NoExecFunction mean
|
Oct. 9, 2014, 4:08 a.m. |
+ 1 |
for Post
tuple to date?
|
Oct. 9, 2014, 4:08 a.m. |
+ 1 |
for Comment
bunnychai: input is a 3-tuple, could just feed in date() by date(*date1), where date is the datetime.date...
|
Oct. 8, 2014, 3:54 a.m. |
+ 1 |
for Comment
bukebuer: It should be "for i in data:" instead of "for i in range(len(data)):". The latter one will just gene...
|
Oct. 7, 2014, 6:51 a.m. |
+ 1 |
for Comment
veky: ## Helpful Tips: Python Bad Practices Funny. He fusses about nonidiomatic Python, but he does the sa...
|
Oct. 7, 2014, 6:27 a.m. |
+ 1 |
for
What Happened in Python During the Month of September
|
Oct. 6, 2014, 3:24 a.m. |
+ 1 |
for Comment
spoty: I have run your code and didn't get any error. This task just: "The Flat Dictionary" task doesn't ac...
|
Oct. 5, 2014, 2:32 a.m. |
+ 1 |
for Comment
Sim0000: In line 4, range(0, len(array), 2) is correct. In line 5, you need to add array[i] instead of i. And...
|
Oct. 5, 2014, 2:32 a.m. |
+ 1 |
for Comment
spoty: 1.hint: elif 2.hint: check your indentation 3.hint: & is not and
|
Oct. 5, 2014, 2:31 a.m. |
+ 1 |
for Comment
oduvan: Hi Terry. We are glad to have you here. I hope you enjoy the game
|
Oct. 4, 2014, 2:56 p.m. |
+ 1 |
for Comment
spoty: Because your regex is not correct: check this out: https://www.debuggex.com/r/7cDLoKbRwxJlymCS
|
Oct. 3, 2014, 4:32 a.m. |
+ 1 |
for Post
Span tags lost in task description
|
Oct. 2, 2014, 2:17 a.m. |
+ 1 |
for Comment
MooMoo: Maybe you forgot some brackets, and it should be something like this? lambda kv: [kv[1], kv[0]] Othe...
|
Oct. 2, 2014, 2:05 a.m. |
+ 1 |
for
Cellular Automation with Python
|
Oct. 1, 2014, 10:19 a.m. |
+ 1 |
for Comment
reviewboy: Ooh, that's nice. this is much more readable than mine. return min([(-1 * ltext.count(c), c) for c i...
|
Oct. 1, 2014, 8:55 a.m. |
+ 1 |
for Comment
profuel_39643665ff7744e3bff926: you must use LAST element to multiply, not the MAX value of the ones in array. Please try this: chec...
|
Oct. 1, 2014, 8:54 a.m. |
+ 1 |
for Comment
nikola.pepic: Example: N = 3. You need to find a member of the array that has index of 3. Let's call that member X...
|
Sept. 29, 2014, 9:01 p.m. |
+ 1 |
for Comment
Martin.N.Menendez: In my university (UBA-University of Buenos Aires) there is a big discussion about replace Pascal for...
|
Sept. 29, 2014, 9:01 p.m. |
+ 1 |
for
CheckiO in Top American Universities
|
Sept. 29, 2014, 8:27 p.m. |
+ 1 |
for Comment
artemrudenko: Hi Thomas, You can change you signature from: def checkio(acc, data): To: def checkio(data, acc=''):...
|
Sept. 29, 2014, 1:02 a.m. |
+ 1 |
for Comment
Sim0000: Because your *visited* is global variable.
|
Sept. 28, 2014, 9:08 p.m. |
+ 1 |
for Comment
ablikexe: It should be **num < len(array)** - as you wrote in 7th line, the last element has index **len(array...
|
Sept. 27, 2014, 9:14 p.m. |
+ 1 |
for Comment
Cjkjvfnby: It is shame for professional programmer to ask such questions. If you can solve this task in your la...
|
Sept. 27, 2014, 9:14 p.m. |
+ 1 |
for Comment
Cjkjvfnby: http://blog.codinghorror.com/why-cant-programmers-program/
|
Sept. 27, 2014, 5:54 a.m. |
+ 1 |
for Comment
melsener: i didn't see that condition first. thank you.
|
Sept. 27, 2014, 5:48 a.m. |
+ 1 |
for Comment
Renelvon: Perhaps I could get rid of the 'subtract' and just use return [x for x in data if count[x] > 1] This...
|
Sept. 27, 2014, 5:48 a.m. |
+ 2 |
for
First-Renelvon
|
Sept. 27, 2014, 5:44 a.m. |
+ 1 |
for Comment
veky: What? :-) It's a list comprehension. Just read it, you'll probably understand. :-)
|
Sept. 27, 2014, 5:44 a.m. |
+ 1 |
for Comment
veky: I've noticed a tendency: people come and like my solution, and then dislike comments like these. Fas...
|
Sept. 27, 2014, 5:42 a.m. |
+ 1 |
for Post
What am I supposed to do?
|
Sept. 27, 2014, 5:41 a.m. |
+ 1 |
for Comment
DillonKo: Hi I would love to help if you have any questions I will be more than happy to help you understand h...
|
Sept. 26, 2014, 5:31 a.m. |
+ 1 |
for Comment
veky: Guido used to tell a story, about a man doing taxes in ABC (predecessor to Python), when his program...
|
Sept. 25, 2014, 9:45 p.m. |
+ 1 |
for Comment
RufusVS: +1
|
Sept. 25, 2014, 9:45 p.m. |
+ 1 |
for Comment
Lom: Yes.
|
Sept. 25, 2014, 9:01 p.m. |
+ 1 |
for Post
Hilarious!
|
Sept. 25, 2014, 4:02 a.m. |
+ 1 |
for Comment
flerptyderp: Oh God, never mind. I overlooked something.
|
Sept. 25, 2014, 1:18 a.m. |
+ 1 |
for Comment
ArchTauruS: I have done it too. Have a look at my code, hehe.
|
Sept. 24, 2014, 9:17 p.m. |
+ 1 |
for Comment
Blastus: CogbkrO jutjeocuo ueteglaubrii tnyhugklnbvw ellebiiot ki lywvbonkho. K = agneibyrctklhwsvouj, oyneru...
|
Sept. 24, 2014, 1:10 a.m. |
+ 1 |
for Comment
ablikexe: "Task is closed"
|
Sept. 24, 2014, 1:10 a.m. |
+ 1 |
for Comment
gyahun_dash: I found a test that doesn't satisfy all(len(row) == len(state) for row in state).
|
Sept. 24, 2014, 1:10 a.m. |
+ 1 |
for Comment
Sim0000: Nice mission! I have fun it.
|
Sept. 23, 2014, 9:01 p.m. |
+ 1 |
for Comment
ablikexe: Function **sorted** returns a list - you should remove spaces before sorting (with **replace**) [the...
|
Sept. 22, 2014, 8:44 p.m. |
+ 1 |
for Comment
ablikexe: Nice solution! But there is maximum recursion depth limit - http://stackoverflow.com/questions/33230...
|
Sept. 22, 2014, 8:30 p.m. |
+ 1 |
for Comment
ablikexe: You should pass something iterable to functions *max* and *min* - you can write **max(args)-min(args...
|
Sept. 19, 2014, 8:58 p.m. |
+ 1 |
for Comment
ablikexe: If you want to calculate float, you should use **/** instead of **//** (in 15th and 17th line) ;)
|
Sept. 19, 2014, 8:38 p.m. |
+ 1 |
for Comment
veky: This is a really nice twist. Not unmanageable, but be prepared for many petitions for somehow distin...
|
Sept. 17, 2014, 9:09 p.m. |
+ 1 |
for Comment
coells: First, let's look at some recommendations: enumerating string char by char is quite simple in python...
|
Sept. 17, 2014, 9:08 p.m. |
+ 1 |
for Comment
hanpari: Try to learn about function enumerate. One of my favorites :)
|
Sept. 17, 2014, 9:08 p.m. |
+ 1 |
for Comment
ablikexe: Hi! You should use simply *e* instead of *expression[e]* ("for" loop takes elements of *expression* ...
|
Sept. 17, 2014, 9:08 p.m. |
+ 1 |
for Comment
ablikexe: Hi, *array.index(i)* returns the index of the **first occurence** of *i* in the array. That means th...
|
Sept. 17, 2014, 9:08 p.m. |
+ 1 |
for Comment
bunnychai: your approach only works on unique set of values, for the failed case, 84 is duplicated, index() onl...
|
Sept. 17, 2014, 9:08 p.m. |
+ 1 |
for Post
which is the difference ? which way is faster ?
|
Sept. 17, 2014, 9:08 p.m. |
+ 1 |
for Comment
veky: This concrete example is a bit controversial, since "".join might benefit greatly from knowing in ad...
|
Sept. 17, 2014, 9:08 p.m. |
+ 1 |
for Comment
vbereznyuk: Вам дан некоторый текст потенциально содержащий обычные слова. Вы должны рассчитать, сколько обычных...
|
Sept. 16, 2014, 10:55 p.m. |
+ 1 |
for Comment
ablikexe: I am getting result "durin" instead of "these" in third test... Well, I'll try some other ways. In t...
|
Sept. 16, 2014, 9:52 p.m. |
+ 1 |
for Comment
ciel: It's calculation order is O(nlogn). Usual solution takes O(n^2).
|
Sept. 16, 2014, 9:52 p.m. |
+ 1 |
for Comment
nickie: Well done. I have a slightly slower version (more Pythonic in the merging phase) with comments and l...
|
Sept. 16, 2014, 9:52 p.m. |
+ 1 |
for
merge_sort-ciel
|
Sept. 16, 2014, 8:33 p.m. |
+ 1 |
for Comment
veky: Bryukh - an engine for turning coffee into preconditions. :-D > You are fast :-) No, my fourliner wa...
|
Sept. 16, 2014, 8:31 p.m. |
+ 1 |
for Comment
ablikexe: Yeah, you write in C/C++ style :) Just in case you don't know: you don't need parentheses after if. ...
|
Sept. 16, 2014, 8:31 p.m. |
+ 1 |
for Comment
ablikexe: Items in dictionary (line 17, "for let, num in mp.items():") are in "random" order, and you want the...
|
Sept. 16, 2014, 8:30 p.m. |
+ 1 |
for Comment
profuel_39643665ff7744e3bff926: Imagine no items in array, last == -1, of course it's out of any list bounds
|
Sept. 16, 2014, 8:28 p.m. |
+ 1 |
for Comment
veky: [You've missed len() at the right side.] Ah, good. Then I have a fourliner. :-D
|
Sept. 16, 2014, 8:19 p.m. |
+ 1 |
for Comment
veky: Hm... do we know that new encrypted message will always be shorter than the old one? Or at least tha...
|
Sept. 14, 2014, 11:58 p.m. |
+ 1 |
for Comment
bbmin7b5: Ok I get different a different order the second time around. I'll tear down my code and start over. ...
|
Sept. 14, 2014, 11:57 p.m. |
+ 3 |
for
First-Cjkjvfnby
|
Sept. 14, 2014, 1:56 a.m. |
+ 1 |
for Comment
Sim0000: The two example of initial editor code have errors. Followings are correct. encode("My name is Alex!...
|
Sept. 12, 2014, 9:05 p.m. |
+ 1 |
for Comment
kidnohr: thank you!! I can solve this task!!
|
Sept. 10, 2014, 10:06 p.m. |
+ 3 |
for
Modified A*-bukebuer
|
Sept. 10, 2014, 10:05 p.m. |
+ 1 |
for
First-Sim0000
|
Sept. 10, 2014, 9:59 p.m. |
+ 1 |
for Comment
gyahun_dash: In Precondition, you mean: 4 ≤ len(str(key)) int(len(str(key)) * 1.5) ≤ len(message) re.match("\w+$"...
|
Sept. 10, 2014, 8:02 p.m. |
+ 1 |
for Comment
Sim0000: The task explanation says "Text letter case does not matter". And your code ignore this.
|
Sept. 10, 2014, 9:42 a.m. |
+ 1 |
for Comment
profuel_39643665ff7744e3bff926: You have additional spaces at the beginning. I suggest using list to combine numbers - nlist - and t...
|
Sept. 10, 2014, 12:42 a.m. |
+ 1 |
for
Simplifying Polynomials, Hacking Santa and CheckiO's Hardest Mission Yet!
|
Sept. 9, 2014, 10:44 p.m. |
+ 1 |
for Comment
veky: > not how I define the spirit of this game. And that's worth -3 for you? Ok, whatever. But I must la...
|
Sept. 9, 2014, 9:20 p.m. |
+ 1 |
for Comment
Sim0000: In line 25, you use list[i]. Maybe, data[i] is correct.
|
Sept. 9, 2014, 9:20 p.m. |
+ 1 |
for Comment
pohmelie: Square brackets at line 25, I think. fin.append(list[i])
|
Sept. 9, 2014, 7:50 p.m. |
+ 1 |
for Comment
profuel_39643665ff7744e3bff926: I feel, it should look like this, not sure it will work. def checkio(data): re.match("[a-zA-Z0-9]+",...
|
Sept. 9, 2014, 7:49 p.m. |
+ 1 |
for Comment
salazar.aldrin: I execute the code as is in the OP, there are no uppercased letters. Always returns -1 it should ret...
|
Sept. 9, 2014, 7:49 p.m. |
+ 1 |
for Comment
taras-sereda: Try to execute your code line by line. Last statement should return 0 as position of pal[3] in text ...
|
Sept. 9, 2014, 7:49 p.m. |
+ 1 |
for Comment
profuel_39643665ff7744e3bff926: It simply works. I think, initial version of your **text** contains uppercased letters. Please try t...
|
Sept. 9, 2014, 7:45 p.m. |
+ 1 |
for Comment
profuel_39643665ff7744e3bff926: Last test: IndexError: list index out of range, index_power, 8 index_power((96,92,94), 3) which mean...
|
Sept. 9, 2014, 7:37 p.m. |
+ 1 |
for Comment
ablikexe: Hi! In 3rd line, it should be simply "for c in words:" (now it does something you probably don't wan...
|
Sept. 9, 2014, 3:43 a.m. |
+ 1 |
for
An Interview with Star Player cjkjvfnby
|
Sept. 9, 2014, 3:41 a.m. |
+ 1 |
for Comment
ablikexe: I can't help much, because I was familiar with C++, and most of the time I was just guessing what wo...
|
Sept. 9, 2014, 3:40 a.m. |
+ 1 |
for Post
Learning Python, tips?
|
Sept. 9, 2014, 3:40 a.m. |
+ 1 |
for Comment
pohmelie: I read Lutz book at first (only quarter thow), than went to dive into python (again, nearly half). A...
|
Sept. 9, 2014, 3:40 a.m. |
+ 1 |
for Comment
EmilyGlass: I didn't know about the nextdayvideo YT channel, I will check it out. Thanks!
|
Sept. 9, 2014, 3:37 a.m. |
+ 1 |
for Comment
oduvan: Looks like a new island is coming :)
|
Sept. 8, 2014, 4:06 a.m. |
+ 1 |
for Comment
Amachua: Of course, it could increase the gap between two solutions but it's part of the game (learning thank...
|
Sept. 7, 2014, 9:36 p.m. |
+ 1 |
for Comment
profuel_39643665ff7744e3bff926: It works for me once. So the problem is STATIC res in params. Replace on res=None and init with [] a...
|
Sept. 6, 2014, 8:29 p.m. |
+ 1 |
for Post
Capital letter
|
Sept. 5, 2014, 11:05 p.m. |
+ 1 |
for Post
Secret Message
|
Sept. 4, 2014, 10:17 p.m. |
+ 1 |
for Comment
ablikexe: "The radiation is emitted from the largest **group** of identical spare parts **(where each part is ...
|
Sept. 4, 2014, 8:12 p.m. |
+ 1 |
for Comment
veky: Croatian (and probably Russian too:) language has a wonderful reply to that: nema na čemu. It is usu...
|
Sept. 4, 2014, 6:45 a.m. |
+ 1 |
for
Get Schooled
|
Aug. 31, 2014, 10:07 p.m. |
+ 2 |
for
Quick and dirty-veky
|
Aug. 30, 2014, 5:21 a.m. |
+ 1 |
for Post
What is the correct answer?
|