13
borisuvarov
1 11 23
725/ 845
Last seen 8 years ago
Member for 8 years, 9 months, 17 days
Difficulty Normal
Missions (59) / Solutions (56)
Best solutions / Newest solutions
Home
List comprehension
Non-unique Elements
count
if-comprehension
list-comp
comprehension
Python has some magic skills
Even the Last
sum
else
if
3
Using * to unpack the tuple
Days Between
date
datetime.date
datetime
abs
With some preparations
Pawn Brotherhood
get
or
in
append
int
Straightforward solution
Three Words
isalpha
False
True
split
else
That's why Python is so cool
Right to Left
replace
join
Electronic Station
All lines and diags + check for 4 number in a row
Find Sequence
enumerate
join
if-comprehension
in
False
Simplest stack
Brackets
values
keys
continue
pop
not
Simple is better than complex
Boolean Algebra
elif
and
else
if
Implicit str to list typecast
Verify Anagrams
replace
lower
sorted
Standard solution
Digits Multiplication
int
str
for
if
Scientific Expedition
unicodedata's normalization
Remove Accents
category
unicodedata.category
normalize
unicodedata.normalize
unicodedata
In Russia, we call it "govnocode"
Morse Clock
rjust
format
replace
split
int
Not bright, but works
The Most Wanted Letter
setdefault
values
get
items
isalpha
collections.deque
Letter Queue
startswith
collections.deque
deque
collections
join
Dirty and not bulletproof, will refactor it later
Striped Words
upper
isalpha
replace
except
try
First
I Love Python!
Index shift
Bird Language
while
in
elif
else
len
Subset and ascii_lowercase
Pangram
issubset
ascii_lowercase
string.ascii_lowercase
string
set
Intersections of sets
Common Words
set
sorted
join
split
Sorted with key function
Absolute Sorting
abs
sorted
Yes, you can join lazy generator expression!
Secret Message
isupper
join
if-comprehension
comprehension
O'Reilly
Just another boring solution
Count Inversions
for
if
Zen of Python violation
Flatten a List
isinstance
not
inline-if
sum
list
It can take negative indexes too
Index Power
IndexError
except
try
12
Obvious and clear
Median
sort
else
int
len
if
Draft
Xs and Os Referee
count
or
append
for
if
Incinerator
Basics of class creation
Building Base
class
format
Dirty solution, will refactor it later
Friends
class
union
iter
next
add
Mine
functools.reduce() + fractions.gcd() (math.gcd() in Python 3.5)
The Greatest Common Divisor
fractions.gcd
gcd
fractions
functools.reduce
reduce
Just let yourself be boring!
Fizz Buzz
elif
else
str
if
7
Don't convert bin to str
Binary Count
bin
count
First draft, definitely need some refactoring
Moore Neighbourhood
pass
IndexError
except
try
and
Ice Base
sum() of "Trues"
Monkey Typing
lower
sum
in
comprehension
Simplest solution
Clock Angle
abs
split
int
if
Subtraction cycle
Roman Numerals
while
for
1
It's not a simple task, guys
How to Find Friends
isdisjoint
issubset
update
any
remove
OK, I'm a straightforward guy
The Most Numbers
min
max
else
if
Alice In Wonderland
map's here to convert tuples to list
Transposed Matrix
zip
map
list
GitHub
Standard and kinda dumb
The End of Other
endswith
False
and
True
for
Dropbox
Too long lines, need to PEP8 it later
Humpty Dumpty Form
math.atanh
atanh
math.asin
asin
math.pi
PyCon TW
Superb example of the govnocode
Network Attack
values
keys
add
items
enumerate
Regex
House Password
re.compile
compile
re
False
True
2
Just meh, nothing special
Simple Areas
math.pi
pi
math.sqrt
sqrt
math
Simple, maybe not optimal
Digit Stack
pop
append
split
int
for
Storage
So shitty, definitely refactor it later...
Moria Doors
replace
set
lower
append
split
Simple cycle
Skew-symmetric Matrix
zip
False
True
range
len
Ugly and inconsistent
Weak Point
zip
sum
list
for
if
HubSpot
Twice through the camera
Auto Painting
inline-if
join
while
append
list-comp
Binary XOR
The Hamming Distance
bin
count
Recursion on tail
Restricted Sum
len
if
int() with base parameter
Number Base
ValueError
except
try
int
Blizzard
weekday()
Weekend Counter
datetime.timedelta
timedelta
datetime
while
in
Right rounding is the key!
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
Shelter
Don't like it, but works for now
Ghosts Age
index
in
append
range
else
Watchtower
functools.reduce()
Funny Addition
functools.reduce
reduce
functools
lambda