17
krzysztofrrr
4 14 29
1550/ 1695
Last seen 5 months ago
Member for 5 years, 3 months, 13 days
Difficulty Normal
Best reviews / Newest reviews
title-yoichi 2
This is great. I didn't know it More
First / Need suggestions.Thanks.-danielkoo 1 1
to make a list simpler to use: new_data = [] More
result[isinstance(item, int)]-flpo 1
Nice and clever. I think it would fit more into creative category :) More
sorted(sorted)-flpo 1 1
very nice. I did it similar, but twice where it could be in one double sort! More
First-eugene100372
You could parse data and time with something like: dt, tm = time.split() day, month, year = map(int,dt.split('.')) More
First-Moff
almost the same, but didn't know it's enough to put \w' insdide [] More
yield-kurosawa4434 1
Nice. But, I think I don't quite understand it. is return value always to the point we iterate ? More
Stackless-blabaster
looks cleaner than mine with regex More
comprehensions-MBM_1607
clear. hovewer we need to iterate twice. More
First-Stepan__Timetsky
Perhaps, more clear to read would be: date, hours = time.split() day, month, year = date.split('.') h, m = hours.split(':') hour = "hour" if h == '01' else "hours" minute = "minute" if m == '01' else "minutes" etc. More
List Comprehension With Condition-rkozom
enough to put in one line ie: return [x for x in data if data.count(x)>1] More
First-heenashree2010
can optimize to: uni_list=[] for i in data: if data.count(i) > 1: uni_list.append(i) return uni_list and when you see that, next step coult be to refactor into list comprehensions: return [item for item in data if data.count(item) > 1] More