11
drobotnik
10 23
550/ 645
Last seen 8 years ago
Member for 9 years, 1 month, 18 days
Difficulty Normal
Best reviews / Newest reviews
Partial-veky 6 1
Where do I go to understand what the hell is happening here? The Python docs for regex say that \w matches any alphanumeric character. Where do you define vowels??? More
Commented-tarikki 1
A few pointers: if len(numbers) > 0 == if numbers You can also use pop() to return the last object in a list and delete it from the list instead of del More
First-Bharat_Kalluri 1 1
Hi, Why not just return sample? More
Defining inversions-ale1ster 1 1
I didn't realise combnations preserved order :) More
Solved with sets-tomkun 1 1
you can use zip(*game_result) for to transpose board and get verticals More
s1.5-flex
nice, I didnt know about isupper() More
filter-veky 1
WOW! Shots fired in the comments section!!! I think clear for most people means something like this: def find_message(text): """Find a secret message""" output = '' for l in text: if l.isupper(): output += l return output Either way, I am definitely more mot More
First-andrea.manno1 1
Sets are unordered so {'a', 'b'} == {'b', 'a'} More
The Verbose One-Zedenem
I I didn't think to use x != y nice More
First-Kwentar
Nice, almost identical to mine! More
for else-veky 1
Why did you put the else in? Why not: def checkio(words): succ = 0 for word in words.split(): succ = (succ + 1)*word.isalpha() if succ == 3: return True return False More
Digits Multiplication-Arjester
if int( c): res *= int(c) More
First-Hartrik
Didnt know about endswith... Can you explain this part: for w in words for s in words More
First-Blukano
max/ min can check an iterable and return the largest/smallest number. It doesnt have to be max(a,b). ie max([1,2,3,4,5]) works More
Moores-tigelane
Seems longer and more complex than it needs to be. For example, check neighbors can be done using: for row in range(-1,2): for col in range(-1,2): #some code this will allow you to check a larger area but without writing out a massive tuple manually More
First-Riddick
You dont need line 7: if number%3 == 0 or number%5 == 0: You are already checking if it is divisible by 3, divisible 5 by and both. You can use if, elif, elif, then return More
First-Blukano
Maybe line 5 could be clearer as: if len(array) == 0 Since that makes it explicit and removes any doubt about what you are looking for More
Monkey Typing-Happiness 1
You can get rid of line 2 and change line 5: numOfWords += int(word in text.lower()) More