13
GaulFries
2 7 19
752/ 845
Last seen 1 year ago
Member for 10 years, 2 months, 14 days
Difficulty Normal
Best reviews / Newest reviews
First with re-arendina13 1
I like this logic. Either the word has all vowels stepping by 2 and all consonants stepping by 2 (one position shifted), or the inverse. Great approach. More
First-JulianNicholls 1 1
I like your sorted(dictionary, reverse) trick. When i made my elements dictionary, it unsorted everything. But your semantics puts them back into order. I'm going to borrow that trick. More
First-MSL 1
this idiom is common when parsing dictionaries -- "for k, v in my_dict.items()" -- for increasing readability, making variable name more explicit. Your code would become: return [ sorted([name for name, age in sailors.items() if age < 20 or age > 40]), sorted([name for name, ag More
Clear? Working on clear.-robby.daigle
It's a straightforward explanation. My hangup was interpreting how the { got saved as a 0, then the 0 compared to the }. A short comment would have clued me right in. Otherwise, i like the flow of ideas & readability. More
First-sunaemon0
I like the 'all(...) for j in range' loop within the 'for i in range' loop. I'm going to have to borrow that little trick. :) More
First-tamacjp
From some quick googling, i've only found ^ (i.e., disjunction) can be used on comparing objects if they are in sets. So set_a = {'cat', 'fish'}, set_b = {'fish', 'stick'}, and (set_a ^ set_b) = {'cat', 'stick'}. When used on anything else, it reads the n and m in (n^m) into binary form when tes More
First-VadimZabiiaka
This is the most pythonic script i can imagine. In one line it converts to lowercase, eliminates non-alphebetics and sorts. The other parts are equally concise and legible. More