22
hrvoje
9 25 38
2826/ 2945
Last seen 2 years ago
Member for 10 years, 1 month
Difficulty Normal
Trying to make everything a one-liner and sometimes failing miserably. :)

Missions (125) / Solutions (120)
Best solutions / Newest solutions
Home
Straightforward ... :)
Pawn Brotherhood
chr
ord
map
inline-if
sum
3
Slightly weird solution :)
Three Words
isdigit
inline-if
join
in
list-comp
1
First
Non-unique Elements
count
if-comprehension
list-comp
comprehension
1
Boring and not very creative
Bigger Price
lambda
sorted
True
list
int
No wheel reinvented
Days Between
date
datetime.date
datetime
abs
Short & boring
Right to Left
replace
join
The last is a blast
Even the Last
IndexError
except
try
sum
Electronic Station
Four fors in f
Mathematically Lucky Tickets
operator.truediv
truediv
operator.sub
operator.add
mul
1
I <3 ZIP!
Find Sequence
re.search
search
r-string
any
zip
Reduce and list comprehension
Digits Multiplication
functools.reduce
reduce
functools
lambda
if-comprehension
Laying some tiles
Can You Pass?
difference
union
set-comp
functools.reduce
reduce
Relatively short
Boolean Algebra
int
First
Verify Anagrams
dict-comp
replace
set
lower
count
Scientific Expedition
Short Telegraph
Morse Clock
zfill
format
map
replace
join
2
1
1-Line
Bird Language
re.sub
sub
r-string
re
7
1
A little weird :)
The Most Wanted Letter
ord
isalpha
max
lower
lambda
1
Don't ask. :o)
Cipher Map
tuple
zip
map
enumerate
print
Oneliner pangram!
Pangram
isalpha
set
lower
if-comprehension
list-comp
Limerick
I Love Python!
First
Letter Queue
pass
IndexError
pop
except
try
Second
Morse Clock
zfill
format
map
replace
join
Simple and fun :)
Absolute Sorting
abs
sorted
Fun problem
Common Words
sorted
join
if-comprehension
in
list-comp
Simple, fast
Secret Message
isupper
join
if-comprehension
list-comp
list
O'Reilly
Almighty Zip
Cipher Crossword
dict-comp
dict
items
tuple
zip
6
Transitive relations
Determine the Order
itertools.product
product
itertools
ord
index
15
At least it's short
Count Inversions
enumerate
sum
list-comp
comprehension
Very weird solution
Loading Cargo
itertools.product
product
itertools
zip
min
No need to complicate
Index Power
except
try
Straightforward
Xs and Os Referee
zip
isalpha
join
and
list-comp
1
Incinerator
First
Friends
class
difference
union
remove
set
Base By The Book
Building Base
class
Mine
Oh, Albert!
The Einstein Problem-Lite
eval
any
map
pop
set
2
Disposable Recursion
Disposable Teleports
frozenset
iter
next
set-comp
filter
7
Simplicity
The Greatest Common Divisor
fractions.gcd
gcd
fractions
functools.reduce
reduce
Quicky in da hood
Moore Neighbourhood
itertools.product
product
set-comp
itertools
map
Recursive Laplace
Determinant
enumerate
sum
list-comp
comprehension
len
Tortoise outlived Achilles :)
Achilles and the Tortoise
lambda
Binary count, literally :)
Binary Count
bin
count
Ice Base
Boring and predictable
Feed Pigeons
if-comprehension
list-comp
range
comprehension
len
7
Recursive, short, weird but works! :)
Roman Numerals
not
lambda
inline-if
str
16
1
Nom nom nom nom
Oil Pie
Fraction
fractions.Fraction
fractions
map
abs
17
1
If only there was an algorithm :)
How to Find Friends
intersection
update
enumerate
set
in
Shorty
The Most Numbers
min
max
inline-if
len
The shortest I know
Monkey Typing
lower
sum
in
list-comp
comprehension
Alice In Wonderland
Double D's :)
Digits Doublets
itertools.starmap
starmap
itertools.permutations
permutations
all
4
Knighty Knight
The Shortest Knight's Path
difference
union
set-comp
functools.reduce
reduce
Oneliner
Transposed Matrix
zip
map
list
GitHub
Quick & gets the job done :)
Area of a Convex Polygon
zip
abs
sum
list-comp
comprehension
5
1
Shoooooooooort. :)
Solution for Anything
class
None
lambda
True
7
2
Recursive Boulder Dash.
Open Labyrinth
if
3
Even shorteeeeeeeeeeeeeer! :)
Solution for Anything
class
None
lambda
True
Not efficient but short :)
The End of Other
endswith
is
not
if-comprehension
in
Dropbox
Ugliest oneliner in history. Ever.
Speech Module
strip
inline-if
join
2
Nine, One, MinusOne
Numbers Factory
inline-if
sorted
join
range
int
2
9
Shuffle the points!
Three Points Circle
ZeroDivisionError
eval
float
format
map
9
1
Pawn Humps Queen
Place Queens
operator.sub
operator.add
itertools.product
product
operator
First
Simple Hashlib
hashlib.new
new
hashlib
update
PyCon TW
Python haiku
How Much Gold
lambda
sum
in
list-comp
comprehension
13
1
Very short and non-recursive
Golden Pyramid
tuple
enumerate
max
lambda
comprehension
19
Kind of ugly, but fits in a single line.
Simple Areas
lambda
len
Fill, Sort & Partners, Inc.
Calculate Islands
union
set-comp
functools.reduce
reduce
functools
Look ma, no regex! :)
House Password
islower
any
isupper
isdigit
False
1
Storage
Short, but boring.
Earth Distances
math.radians
radians
math.cos
cos
math.sin
1
1
Simply test
Skew-symmetric Matrix
zip
lambda
list-comp
comprehension
4
1
For For For
Hexagon Spiral
operator.sub
operator
sub
zip
map
4
Seriously bad and improvized
Restricted Prime
not
while
False
True
if
8
Complex numbers FTW
Square Spiral
abs
append
range
for
8
Quine Exec Quine Exec Quine Exec Quine Exec Quine ...
Exec Quine
lambda
11
Cakes Or Cevapi? :)
The Rows of Cakes
Fraction
fractions.Fraction
fractions
combinations
itertools.combinations
Brain Slugs
Mind Switcher
popitem
union
functools.reduce
reduce
functools
Good enough.
Word Pattern
zfill
format
isalpha
lambda
inline-if
First
Weak Point
zip
map
index
min
sum
HubSpot
Ugly, improvised, without a better idea how to tackle this.
Supply Stations
time.time
random.shuffle
shuffle
time
random
9
Short recursion
Restricted Sum
not
len
if
13
FOS - First One Sucks
Expected Dice
random.choice
choice
random
float
round
By the book
Number Base
reversed
enumerate
except
try
sum
1
Long division, ugly code.
Repeating Decimals
divmod
format
zip
map
index
Zip, difference, sum
The Hamming Distance
format
zip
inline-if
sum
comprehension
Blizzard
Sudoku Golf attempt
Sudoku Solver
yield
ValueError
any
index
except
4
Don't Be Square
Spaceship Landing Strip
yield
zip
map
enumerate
min
5
Dutch Quickie
Safe Coasts
union
set-comp
functools.reduce
reduce
functools
6
Golfish
Stair Steps
max
lambda
inline-if
len
13
Chernobyl Jive
Radiation Search
union
set-comp
functools.reduce
reduce
functools
13
Short and weird
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
15
Calendar solution
Weekend Counter
or
if-comprehension
list-comp
range
comprehension
FirstsriF
Palindromic Palindrome
lambda
Rock
Just Keep Pouring
Water Jars
any
min
break
not
lambda
3
Life(cat)=9
Life Counter
divmod
set-comp
enumerate
abs
set
5
Rook Gone Wild
Berserk Rook
set-comp
map
max
not
or
Oh Lambert, My Lambert :)
Super Root
math.exp
exp
math.log
log
as
1
Shelter
Race tracks
The Lantern Festival
copy.deepcopy
deepcopy
union
set-comp
copy
Boring, Sliding Window
Pattern Recognition
lambda
list-comp
range
comprehension
len
Codeship
Dumb solution to a smart problem
The 88th Puzzle
min
lambda
or
list-comp
range
1
2**11
Behind 2048
ValueError
zip
map
index
except
2
Slightly less dumb
The 88th Puzzle
add
tuple
pop
set
while
4
Short and ugly.
The Square Chest
all
sum
sorted
in
list-comp
8
First attempt
8 Puzzle
collections.deque
deque
divmod
add
collections
13
Generating function
Probably Dice
IndexError
enumerate
except
try
range
13
First and Slow
Magic Domino
random.shuffle
shuffle
random
iter
set-comp
14
Windows 3.1 winmine.exe
Minesweeper
union
set-comp
functools.reduce
reduce
functools
15
First, the "Dumb One"
Unfair Dice
partition
StopIteration
raise
yield
get
Hermit
Weird
Mono Captcha
zfill
bin
zip
map
enumerate
1
Not so fast
Break Rings
union
combinations
itertools.combinations
itertools
map
14
Cut non-loopy branches and do some recursion
Network Loops
frozenset
iter
next
set-comp
filter
17
Ping ... ping ... ping ...
Ore In The Desert
math.hypot
hypot
intersection
set-comp
round
Bool overdose
Simplification
class
itertools.zip_longest
zip_longest
object
eval
1
Eq Le Ge
Colder-Warmer
ge
operator.ge
le
operator.le
eq
Try-Except
The Good Radix
ValueError
pass
except
try
not
Watchtower
Magic**2-{d}
Magic Square
copy.deepcopy
deepcopy
divmod
copy
ValueError
1
1
Codes and ciphers
Vigenere Cipher
string.uppercase
uppercase
startswith
string
ord
2
I'm washing my hands twice today :)
Bacteria Colonies
issubset
union
intersection
set-comp
yield
5
Sloppy λ Quickie
Numbered Triangles
enumerate
set
max
lambda
inline-if
8
Made in China :)
Number Guess
mul
operator.mul
pow
operator
functools.reduce
11
And around, and around, and around and around we go.
Rotate Hole
yield
all
enumerate
lambda
list
12
1
Recursive LCS with dict() cache
DNA Common Sequence
clear
set-comp
get
dict
None
15
Convex Skull
Convex Hull
math.atan2
atan2
math
pop
index
1
First Fugly Attempt
Bulls and Cows
string.split
zfill
intersection
set-comp
functools.reduce
No need to complicate
Funny Addition
lambda
sum
Not On Map
Slightly boring, does the job
Most Wanted Letter
filter
collections.Counter
Counter
values
items
11