57
veky
22 48 64 Leader of the month
44491/ 53887
Last seen 16 hours ago
Member for 11 years, 5 months, 19 days
Difficulty Advanced
We shall not cease from exploration, and the end of all our exploring will be to arrive where we started and know the place for the first time.

Missions (383) / Solutions (574)
Best solutions / Newest solutions
Initiation
~Shortest
Non-unique Elements
lambda
count
if-comprehension
list-comp
comprehension
1
303
O(n) :-P
Non-unique Elements
collections.Counter
Counter
collections
set
if-comprehension
1
109
o, safe pawns...
Pawn Brotherhood
chr
ord
bool
lambda
sum
1
23
dict FTW
Roman Numerals
update
reversed
sorted
range
for
1
39
Could be shorter
Flatten a List
map
lambda
sum
1
25
A derelict battery
Roman Numerals
AbstractFormatter
formatter
formatter.AbstractFormatter
functools.partial
partial
1
17
Lambada
Sort Array by Element Frequency
index
lambda
count
sorted
1
8
Twiddling my thumbs
Flatten a List (iterator version)
isinstance
inline-if
int
for
1
10
Two bins
Non-unique Elements
add
set
if-comprehension
in
list-comp
2
25
Lookup
Roman Numerals
lambda
2
6
Enum
Roman Numerals
Enum
enum.Enum
enum
classmethod
class
3
58
iter
All the Same
iter
next
all
None
comprehension
3
15
I like to map it, map it
Split Pairs
operator.add
chain
itertools.chain
operator
add
4
52
Encoded
Pawn Brotherhood
set-comp
any
tuple
sum
in
5
2
Codec
Time Converter (12h to 24h)
time.strftime
time.strptime
strftime
time
strptime
6
15
My hovercraft is full of ells.
All the Same
lambda
8
2
Nested is better for flatting.
Flatten a List
yield
isinstance
list
else
for
15
3
History
Roman Numerals
yield
upper
lambda
join
while
15
11
key(element).update(index)
Sort Array by Element Frequency
dataclass
dataclasses
dataclasses.dataclass
class
collections.defaultdict
In a galaxy far, far away...
Roman Numerals
Ellipsis
not
while
else
if
9
Oh, you mean an _iterable_?
Sort Array by Element Frequency
itertools.repeat
repeat
dataclass
dataclasses
dataclasses.dataclass
2
de Morgan
All Upper I
islower
any
map
not
lambda
The power of None is back!
Between Markers
contextlib.suppress
suppress
contextlib
with
ValueError
2
[see comments about authorship below]
Roman Numerals
divmod
upper
while
elif
else
11
Home
Stack
Brackets
values
pop
in
elif
False
1
72
Partial
Bird Language
functools.partial
partial
re.sub
sub
functools
1
45
DOX and XOX
Xs and Os Referee
zip
map
lambda
sum
join
1
71
*'.'*
Cut Sentence
shorten
textwrap.shorten
textwrap
False
1
9
Landminus
Split List
list
len
1
31
Exception mishandling
What Is Wrong With This Family?
RecursionError
AssertionError
contextlib.suppress
suppress
contextlib
1
13
literally Counter
Life Counter
set-comp
items
enumerate
if-comprehension
in
1
3
No def, no lambda, no woman, no cry
Atbash Cipher
methodcaller
operator.methodcaller
getattr
operator
f-string
1
Ordered
Xs and Os Referee
next
extend
dict-comp
get
map
2
34
trip!
Beginning Zeros
lstrip
lambda
len
2
23
yield from explore
Open Labyrinth
next
yield
for
if
2
1
Figure it out yourself.
Sun Angle
interp1d
scipy.interpolate.interp1d
scipy
datetime.strptime
strptime
3
32
vefan
Bird Language
functools.partial
partial
re.sub
sub
functools
3
5
found return return found
Scytale Encryption
None
in
range
str
len
3
juestr's compressed
Changing direction
zip
lambda
if-comprehension
list-comp
comprehension
4
3
Title is awesome!
Conversion into CamelCase
title
replace
lambda
5
1
Veky's complex solution
Open Labyrinth
index
min
set
not
lambda
5
11
Grilled
Rotating Grille Cipher
iter
next
reversed
extend
zip
5
4
Inside out
Changing direction
itertools.pairwise
pairwise
itertools.starmap
starmap
functools.partial
5
4
Duck duck groupby
Changing direction
itertools.pairwise
pairwise
groupby
itertools.groupby
yield
6
10
All your ducklings in a heap
Ugly Numbers
heappush
heapq.heappush
heappop
heapq.heappop
heapq
3
calculus ratiocinator
Missing Number
statistics.mean
mean
statistics
min
max
Too eager ;-)
Time Converter (24h to 12h)
time.strftime
time.strptime
strftime
time
strptime
8
A*
8 Puzzle
KeyError
dict-comp
get
add
tuple
Trick or treat?
Xs and Os Referee
zip
enumerate
in
comprehension
for
2
Visualize!
Xs and Os Referee
inline-if
in
2
goo.gl/OMVOzE
Xs and Os Referee
inline-if
in
8
Replace, rinse, repeat
Conversion into CamelCase
title
replace
lambda
2
For Sandeep
Xs and Os Referee
zip
map
join
in
list
Electronic Station
dimpleqonx
Boolean Algebra
index
lambda
1
62
Batteries!
Surjection Strings
translate
lambda
str
1
8
Set comprehension
Find Sequence
set-comp
any
and
range
comprehension
1
26
Comprehend
Mathematically Lucky Tickets
set-comp
lambda
inline-if
range
comprehension
1
38
What's up, __doc__?
Boolean Algebra
splitlines
reversed
dict
zip
int
2
24
Canonical
Verify Anagrams
replace
lower
lambda
sorted
2
6
Haskeleton
Similar Triangles
operator.sub
mul
operator.mul
Fraction
fractions.Fraction
2
6
Professional
Mathematically Lucky Tickets
operator.truediv
truediv
operator.sub
operator.add
ZeroDivisionError
3
7
Get to the point!
Sort by Extension
rindex
functools.partial
partial
functools
ValueError
4
15
An operator by any other name...
Boolean Algebra
globals
as
lambda
5
All you need
Digits Multiplication
math.exp
exp
math.log
log
filter
6
4
Spite
Can You Pass?
complex
class
reverse
yield
get
7
2
Obvious
The Final Stone
heapify
heapq.heapify
heappush
heapq.heappush
heappop
9
1
Not the longest but still the same
Find Sequence
set
while
False
and
True
11
21
Again
Digits Multiplication
mul
operator.mul
operator
functools.reduce
reduce
15
10
Spot the difference!
Boolean Algebra
class
getattr
as
lambda
16
3
六つ
Acceptable Password VI
any
isdigit
bool
set
not
18
五つ
Acceptable Password V
any
isdigit
bool
not
or
4
{}.setdefault
Surjection Strings
setdefault
all
zip
comprehension
1
Parser's generators (bis)
Unix Match. Part 2
Ellipsis
class
iter
next
update
2
二つ
Acceptable Password II
any
isdigit
bool
comprehension
str
四つ
Acceptable Password IV
any
isdigit
bool
comprehension
str
三つ
Acceptable Password III
any
isdigit
bool
comprehension
str
一つ
Acceptable Password I
bool
str
len
Scientific Expedition
filter
Secret Message
filter
isupper
lambda
join
str
1
142
Painstaking
Cipher Map
tuple
zip
for
if
1
43
Double ended
Letter Queue
startswith
collections.deque
deque
collections
join
1
39
Magnum opus
I Love Python!
globals
translate
dict
enumerate
None
1
50
lambda lambda
Common Words
set
lambda
sorted
join
split
1
8
smn theorem
Absolute Sorting
functools.partial
partial
functools
as
abs
1
13
Toad
Striped Words
not
or
for
if
1
27
Deceptive
Call to Home
values
map
max
sum
split
1
12
mAlign
Aggregate by Operation
case
match-case
collections.Counter
Counter
dict
1
9
result[key] = schema(value.strip())
YAML. More Types
partition
splitlines
strip
None
replace
1
2
5 methods
Morse Clock
translate
zfill
divmod
dict-comp
r-string
1
24
Neutraldict
Sum by Type
class
staticmethod
itemgetter
operator.itemgetter
operator
1
10
Hinted
Absolute Sorting
abs
lambda
sorted
2
31
template
The Hidden Word
itertools.zip_longest
zip_longest
splitlines
ValueError
itertools
2
20
Put it in neutral!
Sum by Type
type
values
dict-comp
tuple
list
2
7
Complex is better than complicated.
Follow Instructions
index
sum
comprehension
2
4
Encode and check
Striped Words
yield
map
isalpha
isdigit
lower
4
34
Subset
Pangram
ascii_lowercase
string.ascii_lowercase
as
string
set
4
13
Domain Specific
Remove Accents
filterfalse
itertools.filterfalse
combining
unicodedata.combining
functools.partial
4
5
FSM.7z
Striped Words
dict
upper
in
elif
split
4
7
Hold my beer.
Follow Instructions
globals
update
collections.Counter
Counter
collections
4
5
17<<16
Remove Accents
combining
unicodedata.combining
normalize
unicodedata.normalize
unicodedata
5
3
PEP8online compliant
Cipher Map
reversed
zip
join
list
comprehension
6
6
Those were the days, my friend...
Secret Message
functools.partial
partial
functools
filter
isupper
7
5
Finite state machine
Striped Words
upper
in
elif
else
for
8
21
Neutraldict Reloaded
Sum by Type
staticmethod
type
dict
int
str
8
4
if colon: result[key] = value
YAML. Simple Dict
partition
splitlines
isdigit
int
for
14
Mn
Remove Accents
category
unicodedata.category
normalize
unicodedata.normalize
unicodedata
17
A doesn't turn on capslock
Caps Lock
upper
not
False
split
str
1
You keep using that word.
YAML. More Types
partition
splitlines
strip
None
isdigit
5
Partial map
Striped Words
functools.partial
partial
functools
any
map
1
O(1) (space, of course:)
Call to Home
collections.namedtuple
namedtuple
groupby
itertools.groupby
math.ceil
17
Count and subtract
Follow Instructions
collections.Counter
Counter
collections
lambda
5 methods again
Morse Clock
translate
zfill
divmod
dict-comp
r-string
Look, ma, no λ!
Absolute Sorting
abs
sorted
3
O'Reilly
Indexcept
Index Power
IndexError
except
try
1
179
Both sides
Median
sort
len
1
79
from itertools import not compress
Compress List
groupby
itertools.groupby
yield
itertools
for
1
37
Better than nested? Nah.
The Flat Dictionary
update
isinstance
dict
items
not
1
3
Gallery
Count Inversions
enumerate
lambda
sum
comprehension
1
21
Four winds beneath my wings
Lightbulb End Watching
contextlib.suppress
suppress
contextlib
with
Ellipsis
1
5
and next
Sort Except Zero
iter
next
filter
None
sorted
1
11
!= trump != 'notrump'
Bridge Routine
set-comp
collections.Counter
Counter
values
get
1
map is not the TypeErritory
How Deep
TypeError
map
except
try
max
2
8
while chunk yield chunk
Chunk
islice
itertools.islice
iter
yield
itertools
2
5
Starry, starry gt...
Count Inversions
itertools.starmap
starmap
combinations
itertools.combinations
as
2
lambda iter lambda iter
Chunk
islice
itertools.islice
iter
itertools
lambda
2
8
Objection
Parse Array
class
raise
ValueError
pass
format
2
8
Precalc
Cut Into Squares
cache
functools.cache
math.inf
inf
itertools.product
2
datetime.min
Lightbulb Start Watching
contextlib.suppress
suppress
contextlib
with
Ellipsis
3
8
ucture)))))
How Deep
find
map
max
lambda
str
3
2
Golf season is on again!
Frequency Sorting
as
collections.Counter
Counter
collections
lambda
3
total_seconds
Lightbulb Intro
contextlib.suppress
suppress
contextlib
with
Ellipsis
4
3
Trinary
How Deep
itertools.accumulate
accumulate
itertools
find
max
4
8
Lion in Cairo
Reverse Every Ascending
float
append
else
for
if
7
13
baby Dragon 🐉
Chemical Analysis
collections.abc.Counter
collections.abc.abc
collections.abc
finally
abc
7
1
Toposort
Determine the Order
update
set-comp
copy
remove
zip
9
5
Emoticons
Replace Last
lambda
12
5
yield if != previous
Compress List
yield
None
for
if
14
5
Lion shared
Reverse Every Ascending
reversed
float
append
else
for
1
Body double
Majority
sum
len
4
objection sustained
Compress List
object
yield
for
if
1
Seek and destroy
Remove All After
ValueError
index
except
try
1
Queueing
Median of Three
statistics.median
statistics
median
collections.deque
deque
1
Halving
Median
sort
len
Lion surrounded
Reverse Every Ascending
itertools.tee
tee
math.inf
inf
chain
2
statistics
Median
as
4
B*3
Loading Cargo
is
enumerate
None
abs
or
1
Incinerator
real base
Building Base
repr
class
getattr
collections.namedtuple
namedtuple
1
25
Gather!
Army Units
class
getattr
f-string
1
10
Try: understand
Friends
finally
class
discard
frozenset
union
1
28
Reheated
Microwave Ovens
class
divmod
f-string
pass
dict
1
12
Human = Robot = Interlocutor
Dialogues
class
yield
f-string
format
map
1
8
Rename and reuse
Multicolored Lamp
__next__
itertools.__new__
itertools.__next__
__new__
cycle
2
9
self.append(vars(text).copy())
Text Editor
vars
class
update
copy
is
2
7
Whatever floats your 50%
The Vampires
dataclass
dataclasses
dataclasses.dataclass
class
staticmethod
2
19
execf
Army Units
exec
class
getattr
title
type
2
2
Super considered new.
Capital City
class
hasattr
super
not
lambda
4
5
Proofs and refactorizations
Geometry Figures
math.tau
tau
math.tan
tan
class
5
1
The joy of reinvention
Hacker Language
StringIO
io
io.StringIO
Ellipsis
escape
6
3
Rename and reuse readable
Multicolored Lamp
cycle
itertools.cycle
class
next
super
16
2
Chain of command
Voice TV Control
class
TypeError
raise
type
isinstance
1
Friends in high places
Party Invitations
class
getattr
add
remove
set
1
armies[fight(*field)].popleft()
Army Battles
dataclass
dataclasses
dataclasses.dataclass
class
staticmethod
2
Third Newton
The Warriors
dataclass
dataclasses
dataclasses.dataclass
class
property
7
Walrus!
The Defenders
dataclass
dataclasses
dataclasses.dataclass
class
staticmethod
3
Mine
Hinted
Binary Count
bin
lambda
count
1
61
First we take Manhattan...
Moore Neighbourhood
enumerate
abs
max
lambda
sum
1
36
__lt__
Bigger Together
class
reversed
map
lambda
sorted
1
15
punctuation as junk
Caesar Cipher (decryptor)
punctuation
string.punctuation
translate
ascii_lowercase
string.ascii_lowercase
1
8
Altarfinch's compressed
Disposable Teleports
set
lambda
or
inline-if
if-comprehension
1
5
by definition
Determinant
mul
operator.mul
itertools.permutations
permutations
combinations
1
16
Divide et functio
Achilles and the Tortoise
lambda
1
1
Callbackslash
Currency Style
functools.partial
partial
translate
re.sub
sub
1
next(*) solution
The Hollow Diamond
islice
itertools.islice
rstrip
next
ascii_lowercase
1
3
(n**e**-1)**e==n
Checking Perfect Power
any
round
lambda
range
comprehension
1
5
Minimized
Tricky String
map
min
lambda
sum
range
1
Formulaic
Champernowne Word
divmod
lambda
while
int
str
1
8
Cloud number n in ... e ...
Checking Perfect Power
round
lambda
in
range
comprehension
1
4
braZe(n)
The Einstein Problem-Lite
isdisjoint
discard
frozenset
next
set-comp
1
1
An exercise in epistemology
Peaceable Queens
1
2
Five vowels
String-2-Matrix
ascii_uppercase
string.ascii_uppercase
string
upper
zip
1
alphabet shifted
Caesar Cipher (encryptor)
translate
ascii_lowercase
string.ascii_lowercase
as
string
2
10
Bruteforce
Disposable Teleports
frozenset
map
set
lambda
in
2
12
Transform and compare
Correct Capital
capitalize
upper
lower
lambda
in
2
4
Cloud number...
Sum of Digits
lambda
and
2
7
assertive
Disposable Teleports
frozenset
Exception
map
except
try
2
eval term in vars of math
e+pi
math.nan
nan
math.isclose
isclose
vars
2
around
Moore Neighbourhood
bool
lambda
sum
comprehension
3
9
chain, slice, repeat
The Hollow Diamond
itertools.repeat
repeat
islice
itertools.islice
chain
3
Catalan and three bears
Checking Perfect Power
Ellipsis
bool
while
elif
False
4
Batteries
The Greatest Common Divisor
fractions.gcd
gcd
fractions
functools.reduce
reduce
5
20
for...elif...elfor
Color Map
frozenset
union
next
yield
zip
5
2
Calculated is better than guessed
Can Balance
divmod
enumerate
typing.Iterable
Iterable
typing
6
3
sum sorted groups
Sort Sorted Groups
yield
is
None
lambda
sum
6
2
Your zip is open!
Matrix-2-String
chain
itertools.chain
ascii_uppercase
string.ascii_uppercase
ascii_lowercase
7
Bound
Best Stock
get
max
lambda
9
5
WET
Moore Neighbourhood
lambda
sum
comprehension
9
8
A little grain of salt...
15-puzzle Solvability
from_iterable
itertools.from_iterable
chain
itertools.chain
combinations
9
4
Scoped
Count And Say
groupby
itertools.groupby
itertools
sum
comprehension
9
6
Adaptations
Determinant
sympy.Matrix
Matrix
sympy
lambda
int
12
strict
Tricky String
yield
zip
min
break
not
14
with while while
Beat The Previous
contextlib.suppress
suppress
contextlib
with
Ellipsis
14
Up, up and (possibly) away
Convert and Aggregate
collections.Counter
Counter
dict
tuple
collections
Return or return not
Moore Neighbourhood
itertools.product
product
yield
filter
any
7
Look, ma, no reduce!
The Greatest Common Divisor
as
1
Double (ac)counting
Domino Chain
set-comp
yield
any
tuple
sum
Zero `bin`s
Binary Count
divmod
yield
lambda
sum
while
3
most_common(1)
Best Stock
collections.Counter
Counter
collections
match & munch
The Greatest Common Divisor
case
match-case
1
What goes around...
Moore Neighbourhood
yield
lambda
or
sum
len
2
Ice Base
Symmetry
Counting Tiles
abs
range
int
for
1
16
and
The Most Numbers
min
max
lambda
len
1
72
Obvious
Monkey Typing
lower
lambda
sum
in
comprehension
1
21
Dynamic
Feed Pigeons
max
while
1
27
max len of dict
Long Repeat
r-string
dict
map
max
lambda
1
14
injectivity
Cipher Crossword
get
dict
zip
set
sum
1
3
Irrational
Oil Pie
map
abs
sum
for
1
Another derelict battery
Reverse Roman Numerals
Scanner
re.Scanner
Enum
enum.Enum
enum
2
11
There and back again
Clock Angle
cmath.rect
rect
cmath.phase
phase
cmath
2
17
DSL
Berserk Rook
set-comp
all
any
map
set
2
6
packed with fun
Postfix Evaluation
operator.sub
operator.add
mul
operator.mul
operator
2
20
-5.5
Clock Angle
map
abs
split
int
3
2
Optimal
Feed Pigeons
max
lambda
while
if
5
42
Put it in reverse!
Matrix "Hatching"
diag
numpy.diag
reverse
numpy
yield
5
Simple is better than <class 'complex'>
Frogs Collision
inline-if
if
6
imtiaz.rahi's Pythonified
City's Happiness
set-comp
collections.Counter
Counter
values
dict
8
6
return diagonal values
Matrix "Hatching"
collections.defaultdict
defaultdict
values
collections
zip
8
UnionFind
How to Find Friends
setdefault
collections.Counter
Counter
collections
find
10
11
Divide and subtract
Count Divisibles in Range
lambda
10
Tinus Trotyl's Pythonified
How to Find Friends
frozenset
set-comp
remove
break
while
11
2
ale1ster's Pythonified
Berserk Rook
cmath.phase
phase
cmath.pi
cmath
complex
12
6
subn
Adjacent Letters
re.compile
compile
r-string
re
while
12
2
zip(q, q)
Find Quotes
contextlib.suppress
suppress
contextlib
with
Ellipsis
16
11
Why does this work?
Ordinary Cardinals
functools.partial
partial
functools
collections.Counter
Counter
casefold? Which casefold?
Long Pressed
itertools.zip_longest
zip_longest
groupby
itertools.groupby
yield
Dunder, map, lambda, sum(bool)... oh my!
Monkey Typing
map
lower
lambda
sum
2
Alice In Wonderland
Say what you want
Easy Unpack
itemgetter
operator.itemgetter
operator
1
44
Shortest
The Most Wanted Letter
chr
map
max
lower
lambda
1
37
... and that's how you use islice.
Zigzag Array
islice
itertools.islice
itertools.count
itertools
List
1
15
Assault of batteries
IP Network: Route Summarization
IPv4Network
ipaddress.IPv4Network
IPv4Address
ipaddress.IPv4Address
ipaddress
1
12
timedelta
Days Between
date
datetime.date
datetime
abs
lambda
1
12
LISt Processing
Ascending List
all
map
lambda
int
1
13
Myopic :-(
Duplicate Zeros
lambda
inline-if
list-comp
comprehension
1
5
max( max( revocursion
Stock Profit
max
lambda
len
1
1
Key
The Most Wanted Letter
ascii_lowercase
string.ascii_lowercase
as
string
max
2
61
ℤ ≅ ℕ × bool
Nearest Value
min
abs
set
int
2
23
Politically correct
Correct Sentence
capitalize
endswith
not
if
2
26
Connecting the dots
Bigger Price
heapq.nlargest
nlargest
functools.partial
partial
heapq
2
20
KMP inverted
Long Non Repeat
yield
enumerate
max
in
and
2
11
Straightforward
The Good Radix
ValueError
pass
except
try
not
2
6
Weird defaults
Morse Decoder
translate
startswith
capitalize
map
replace
2
6
Other bit operators
Multiplication Table
bin
lambda
count
int
2
1
Shift, flip, slice, debug
Middle Characters
or
len
2
1
user, monkey, ...
Unique Email Addresses
partition
map
replace
set
lower
2
A long, long time ago...
When is Friday?
calendar.weekday
weekday
calendar
reversed
map
2
1
In an orderly fashion
Backspace Apply
join
elif
append
str
for
2
22
Tread carefully...
Swap Nodes
contextlib.suppress
suppress
contextlib
with
Ellipsis
2
1
Not in the mood, but min the mode.
The Fastest Horse
statistics.mode
mode
statistics
index
min
3
4
The worse solution
The Good Radix
next
max
lambda
if-comprehension
range
3
2
... unless you're Dutch.
Huffman Encode
heapify
heapq.heapify
operator.add
class
heappush
3
1
Data and undata structures
Cleaning Robot
fromkeys
update
dict-comp
dict
inline-if
3
map can take more than 2 arguments
Ascending List
itertools.tee
tee
lt
operator.lt
operator
4
18
Eats, shoots and reverses
Zigzag Array
itertools.count
reverse
next
itertools
count
4
Everybody loves Raymond
Tree Walker
isinstance
values
dict
sum
comprehension
4
8
BFS
Digits Doublets
ne
operator.ne
KeyError
collections.deque
deque
4
4
A147562
Ulam–Warburton Automaton
lambda
sum
range
comprehension
4
6
max( max( enumeration
Stock Profit
enumerate
max
lambda
comprehension
4
11
Compilation
First Word
re.compile
compile
r-string
re
lambda
5
2
Shortest
Transposed Matrix
zip
lambda
list
6
9
Lign
Backward Each Word
lambda
join
split
comprehension
6
if total else data
Shorter Set
set
inline-if
sorted
int
7
4
Complex bytes is better than complicated strings.
The Shortest Knight's Path
collections.deque
deque
yield
all
collections
7
7
Gimme 5! (though 6 is ok too)
Birthday Party
datetime.timedelta
timedelta
date
datetime.date
datetime
7
The Good Solution
The Good Radix
contextlib.suppress
suppress
contextlib
with
next
8
6
from functools import idea
Tree Walker
functools.singledispatch
singledispatch
decorator
functools
values
9
7
Don't oppose the transpose!
Nonogram Encode
groupby
itertools.groupby
itertools
zip
map
10
Eye:-patch
Excel Column Number
string.index
ascii_uppercase
string.ascii_uppercase
as
string
10
Dijkstra
The Shortest Knight's Path
chr
float
get
ord
pop
12
4
Deranged
Excel Column Number
string.index
ascii_uppercase
string.ascii_uppercase
as
string
18
1pass
The Most Wanted Letter
filter
collections.Counter
Counter
values
items
20
8
Not that long ago
When is Friday?
calendar.weekday
weekday
calendar
as
map
@aggregate
Stock Profit
functools.partial
partial
yield
decorator
functools
Walrus is too weak :-/
When "k" is Enough!
yield
list
int
for
if
Absolutely parenthesized
Days Between
date
datetime.date
datetime
abs
lambda
2
Zeller flipped
When is Friday?
divmod
map
split
int
if
3
suppress StopIteration
Ascending List
contextlib.suppress
suppress
contextlib
with
StopIteration
7
Ebony and Ivory
Date and Time Converter
getattr
datetime.strptime
strptime
f-string
datetime.datetime
1
Well begun is half done.
Ascending List
float
False
True
for
if
2
teendices
Words Order
itertools.tee
tee
lt
operator.lt
operator
Correct code
Correct Sentence
bytearray
endswith
extend
islower
not
6
Sunset strip
End Zeros
rstrip
int
str
len
2
All the pieces of the puzzle
Ascending List
lt
operator.lt
itertools.pairwise
pairwise
itertools.starmap
GitHub
Straightforward
The End of Other
itertools.starmap
starmap
itertools.permutations
permutations
endswith
1
34
Shoelace
Area of a Convex Polygon
abs
for
1
17
Evenly spaced code
Evenly Spaced Trees
operator.sub
math.gcd
gcd
operator
sub
1
9
lerping
Shooting Range
AssertionError
ZeroDivisionError
round
min
except
1
5
A long, long time ago...
Merge Intervals (iterator version)
iter
next
yield
None
elif
1
5
Inside job
Searchlights
cmath.sin
cmath.exp
cmath.pi
cmath
exp
1
Still the same
Create Intervals (iterator version)
groupby
itertools.groupby
yield
itertools
enumerate
1
Extreme
The Most Frequent Weekdays
calendar.day_name
day_name
calendar.weekday
weekday
calendar
2
10
Still the same
Create Intervals (generator version)
groupby
itertools.groupby
yield
itertools
enumerate
2
Broken code
Broken Clock
r-string
format
zip
map
index
2
9
Minusmax
Xs and Os Champion
functools.lru_cache
lru_cache
divmod
decorator
functools
2
Ctrl+C, Ctrl+V
Merge Intervals (generator version)
iter
next
yield
None
elif
2
Stars aligned
Common Tail
reversed
zip
map
None
else
2
8
1line
Solution for Anything
type
dict-comp
lambda
split
comprehension
3
pass
Simplify Unix Path
startswith
pass
not
or
join
3
15
DahliaSR Pythonified
The End of Other
itertools.permutations
permutations
endswith
as
any
6
7
Maybeline
The Highest Building
f-string
any
enumerate
index
len
10
2
Group differences
Create Intervals
groupby
itertools.groupby
yield
itertools
enumerate
10
4
yield from range
Expand Intervals
typing.Iterable
Iterable
typing
range
for
4
Three-toothed walrus
Common Tail
None
set
list
int
len
4
Divide into functio et impera!
Area of a Convex Polygon
complex
yield
math.sqrt
sqrt
math
1
on-off
Painting Wall
bisect.bisect
bisect
insert
enumerate
for
1
Generator
Merge Intervals
iter
next
yield
None
elif
6
Listomania
The Highest Building
any
enumerate
index
len
for
1
Dropbox
for else
Three Words
isalpha
False
True
split
for
1
228
Si, comprehendo!
Sum Numbers
isdigit
lambda
sum
if-comprehension
split
1
68
Chu-chu!
Max Digit
max
lambda
int
str
1
31
complex>complicated
Humpty Dumpty Form
abs
lambda
1
10
Radical
Speech Module
iter
next
strip
get
dict
1
30
format format format for t
Three Points Circle
eval
format
abs
replace
sum
1
24
digestive
Simple Hashlib
getattr
lambda
1
2
I found this tool in my Grandpa's attic.
On the same path
slice
itertools.count
next
yield
itertools
1
7
Viennese waltz
Fibonacci Spiral's End
range
for
1
7
Cursion
On the same path
any
lambda
or
inline-if
list-comp
1
4
from FORTRAN import .NE.
Not in Order
map
lambda
sum
sorted
int
1
2
O(1)
Hubspot Amulet
while
list-comp
comprehension
1
8
n % 6 == 4
Collatz Ztalloc
reversed
isinstance
None
inline-if
join
1
14
max(captures(
Checkers Capture
yield
abs
set
max
and
1
First
Speech Module
update
strip
dict
enumerate
in
2
20
Decimal FTW
Friendly Number
Decimal
decimal.Decimal
decimal
format
tuple
2
16
Train
Three Words
any
zip
isalpha
join
split
2
4
float if dot else int
Reveal the Number
isdecimal
float
None
not
inline-if
2
4
Meh
URL Normalization
ASCII
re.ASCII
match
re.match
re.sub
2
14
Quasilinear
The Longest Palindromic
yield
index
min
break
max
3
2
shortself
The Best Number Ever
id
lambda
4
7
n,i,t picking
Numbers Factory
not
while
and
range
int
5
26
chi
Place Queens
union
next
filter
map
None
5
9
Left because center justification wasn't right.
Text Formatting
rjust
iter
rstrip
divmod
next
6
4
Complex battery staple
Humpty Dumpty Form
cmath.acos
cmath.sin
cmath.pi
cmath
sin
6
1
Gödel-Gentzen
Three Words
re.search
search
r-string
re
not
7
14
nonlocal
Numbers Factory
divmod
max
sorted
join
int
8
2
@vars
Worth of Words
vars
functools.partial
partial
class
functools
9
juestr's reordered
Friendly Number
decimal.localcontext
localcontext
Context
decimal.Context
ROUND_DOWN
10
2
Deceptively smooth
Revorse the vewels
next
reversed
filter
islower
upper
10
37
...must...have...digit!!1
Is String a Number? (Part II)
fullmatch
re.fullmatch
as
r-string
any
11
'Typed': {'Stringly'}
Switch Keys to Values
setdefault
add
items
set
for
17
2
Unchain my _
Fibonacci Poem
itertools.repeat
repeat
islice
itertools.islice
Ellipsis
17
2
Au
Interesting, intersecting
in
and
range
18
2
complex is better than complicated
Fibonacci Spiral's End
Ellipsis
next
yield
while
range
19
2
Confession: sometimes I miss Python 2...
Interesting, intersecting
issubset
range
2
self
The Best Number Ever
id
2
isdigit, isnumeric, isdecimal, ohmy!
Is String a Number?
isdecimal
str
Second
Three Points Circle
eval
format
abs
replace
sum
Although straightforwardness beats speed.
The Longest Palindromic
combinations
itertools.combinations
itertools
max
if-comprehension
The treachery of subclasses
The Best Number Ever
bool
1
dict slices
Worth of Words
functools.partial
partial
functools
dict
enumerate
6
Sumap
Count Digits
map
isdigit
lambda
sum
str
Digested
Simple Hashlib
getattr
hashlib
No comprehendo
Sum Numbers
filter
map
isdigit
lambda
sum
PyCon TW
Single ended
Digit Stack
startswith
pop
elif
append
int
1
38
Dynamic
Golden Pyramid
reversed
tuple
map
max
range
1
14
switch
Simple Areas
math.pi
pi
math.sqrt
sqrt
math
1
10
Closure
Building Visibility
get
map
lambda
sum
sorted
1
16
5 if 8 else 3
Ryerson Letter Grade
divmod
chr
inline-if
int
str
1
4
Get outa here
Robot Sort
rstrip
ValueError
format
pop
index
1
2
3D
Express Delivery
class
reverse
type
yield
ValueError
1
6
Decorator
Simple Areas
TypeError
math.pi
pi
decorator
math.sqrt
2
15
journal.pop(time)
Network Attack
discard
collections.defaultdict
defaultdict
add
collections
2
5
Oupbvyous
Sum Consecutives
groupby
itertools.groupby
itertools
lambda
sum
2
7
Pointless?
Digit Stack
functools.partial
partial
chain
itertools.chain
eval
2
6
Floodfill
Calculate Islands
divmod
set-comp
ValueError
pop
index
3
15
Ugly
House Password
digits
string.digits
ascii_uppercase
string.ascii_uppercase
intersection
4
16
rref
How Much Gold
Fraction
fractions.Fraction
fractions
reversed
values
6
2
CNF
House Password
islower
all
any
map
isupper
7
7
Naive
How Much Gold
Fraction
fractions.Fraction
fractions
next
remove
7
2
No, thanks.
Ryerson Letter Grade
splitlines
rstrip
filter
map
None
11
Functional festival
House Password
functools.partial
partial
getattr
yield
decorator
5
ConseNonseNamingnse
Sum Consecutives
groupby
itertools.groupby
itertools
lambda
sum
(context) manager of decorations
Simple Areas
contextlib.suppress
suppress
contextlib
with
TypeError
2
Try
Simple Areas
math.pi
pi
math.sqrt
sqrt
ValueError
2
Six degrees of indentation
Double Substring
yield
max
count
range
len
Fewliner
Network Attack
itertools.count
update
set-comp
collections.Counter
Counter
Nested is faster than flat.
House Password
iter
islower
any
map
isupper
3
Twoliner
House Password
digits
string.digits
ascii_uppercase
string.ascii_uppercase
ascii_lowercase
Storage
sum zip
Skew-symmetric Matrix
any
zip
map
lambda
sum
1
2
Invariant
Moria Doors
reversed
strip
map
set
max
1
10
Schnaming
Skew-symmetric Matrix
allclose
numpy.allclose
numpy.array
array
numpy
1
2
Visual
English to Braille Translator
yield
extend
format
zip
map
1
5
Wat?
Square Spiral
ZeroDivisionError
divmod
map
abs
except
1
4
pbs
Saw the Stick
round
lambda
while
list-comp
range
1
7
4D
Haunted House
Ellipsis
class
StopIteration
collections.namedtuple
namedtuple
1
5
Batteries
The Rows of Cakes
type
tuple
map
set
lambda
1
4
74
Word Pattern
isalpha
lambda
sum
range
comprehension
2
4
ZenD'oh
Mind Switcher
union
reversed
extend
get
remove
2
14
Min
Latest ISO datetime
max
2
2
!r
Exec Quine
format
2
2
Sudo make me a curry
Playfair Cipher
functools.partial
partial
isalnum
digits
string.digits
2
19
Get me a curry from the basement
Playfair Cipher
contextlib.suppress
suppress
contextlib
with
StopIteration
2
Factored
Weak Point
tuple
zip
map
index
min
3
24
Brak-brak-star
Group Equal consecutive
groupby
itertools.groupby
itertools
lambda
list-comp
3
2
Spherical > Flat > Nested
Earth Distances
math.radians
radians
math.cos
cos
math.sin
3
6
Hidden?
Digging a Canal
update
dict-comp
float
get
pop
3
4
lambDeCurrator
Playfair Cipher
contextlib.suppress
suppress
contextlib
with
StopIteration
4
7
66 :-O
Word Pattern
bytes
isalpha
lambda
comprehension
int
5
3
Pandemonium
Restricted Prime
hash
all
abs
lambda
and
8
3
Fits!
Exec Quine
f-string
lambda
8
75
Word Pattern
isalpha
lambda
join
comprehension
int
9
2
yield(s) False(hood)
Exec Quine
repr
startswith
yield
lambda
False
10
2
All work (and no play) ...
Skew-symmetric Matrix
allclose
numpy.allclose
matrix
numpy.matrix
numpy
11
5
bool parade
Word Pattern
isalpha
not
lambda
inline-if
16
1
numpy
Skew-symmetric Matrix
matrix
numpy.matrix
numpy
any
not
HubSpot
Hinted
Number Base
ValueError
except
try
int
1
78
Using +
Restricted Sum
eval
1
54
Both
Min and Max
None
lambda
inline-if
sorted
range
1
26
Touch of Cohen
Second Index
contextlib.suppress
suppress
contextlib
with
ValueError
1
22
One nonobvious way to do it.
Backward String
slice
itemgetter
operator.itemgetter
operator
None
1
9
^
The Hamming Distance
bin
lambda
count
1
30
Half
Univocalic davasaan
lambda
1
1
Monster
Auto Painting
map
min
lambda
join
list-comp
1
1
Correction
Auto Painting
min
lambda
join
range
comprehension
1
4
birth certifiDate
Next Birthday
class
datetime.timedelta
timedelta
set-comp
date
1
3
BuFi#
Fizz Buzz
lambda
join
if-comprehension
comprehension
str
2
26
divmod(token + steps, side)
Square Board
divmod
int
2
1
Breaking every rule
Workout
heapq.heapreplace
heapreplace
itertools.pairwise
pairwise
heapify
2
1
INNER JOIN
Right to Left
replace
lambda
join
3
15
Slice with spice
First Word (simplified)
index
lambda
3
18
Obvious
Restricted Sum
eval
map
lambda
join
str
3
4
Seek and destroy
Remove All Before
ValueError
index
except
try
3
18
Unary
Restricted Sum
map
lambda
count
join
3
21
Back(s)lash
Stressful Subject
groupby
itertools.groupby
endswith
itertools
isupper
4
7
First
Even the Last
lambda
sum
len
4
4
School
Repeating Decimals
rstrip
divmod
ValueError
index
except
4
2
First we take...
Between Markers (simplified)
index
4
6
WET
Inscribe a Contour
combinations
itertools.combinations
yield
itertools
min
4
1
Eigensolve
Expected Dice
Fraction
fractions.Fraction
fractions
itertools.product
product
4
4
for split if strip
Non Empty Lines
splitlines
strip
sum
if-comprehension
comprehension
5
Triples
Triangular Islands
isqrt
math.isqrt
divmod
yield
remove
9
Extreme Python
Min and Max
gt
operator.gt
lt
operator.lt
operator
17
6
Weakly
Weekly Calendar
datetime.timedelta
timedelta
yield
datetime.datetime
datetime
19
2
Workhorse
Min and Max
contextlib.suppress
suppress
contextlib
globals
with
4
len @ str
Number Length
lambda
str
len
3
Compare with Roman
Fizz Buzz
Enum
enum.Enum
enum
classmethod
class
8
Super!
All Upper II
isupper
str
Return or return not... of course there's no try.
Is Even
bool
not
int
First natural number is ...
First Word (simplified)
lambda
split
Expert trying to teach Python style
Number Base
string.index
digits
string.digits
ascii_uppercase
string.ascii_uppercase
4
Mutation
Replace First
pop
append
list
if
Slice, no dice
Between Markers (simplified)
index
lambda
Blizzard
Adjustment
Weekend Counter
while
True
if
1
64
Shortest
Weekend Counter
lambda
sum
range
comprehension
1
15
math
The Angles of a Triangle
round
map
min
max
lambda
1
10
It is obvious, it just took me 10 minutes to see it.
Move Zeros
bool
sorted
True
1
6
Do or do not
Sudoku Solver
raise
divmod
reversed
ValueError
all
1
2
Another complex
Radiation Search
get
abs
break
max
while
1
4
reversed(range(min(succ(ceil(cbrt(
Sum of Distinct Cubes
cbrt
math.cbrt
math.ceil
ceil
next
1
Ooh, aah, just a little bit...
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
ValueError
2
2
Quick and dirty
Safe Coasts
bytearray
tuple
map
enumerate
replace
2
enclose!
List Beautify
format
zip
map
max
join
2
4
Dynamic
Stair Steps
reverse
max
append
range
len
4
If I had a hammer...
The First Working Day
calendar.day_name
day_name
calendar
datetime.datetime
date
4
1
Holly *, this is short!
Weekend Counter
lambda
sum
comprehension
8
1
dancetime dance revolution
The First Working Day
calendar.day_name
day_name
calendar
date
datetime.date
10
6
Always find something positive
Radiation Search
complex
Ellipsis
dict-comp
get
items
10
4
First
Palindromic Palindrome
lambda
11
Sweeping negativity
Radiation Search
complex
Ellipsis
copy
dict-comp
get
18
2
First
Spaceship Landing Strip
set-comp
range
comprehension
len
for
OOWTDI
Unlucky Days
FRIDAY
calendar.FRIDAY
Calendar
calendar.Calendar
calendar
Rock
Assignment
Super Root
abs
sum
while
1
9
shortest?
Water Jars
extend
min
while
len
if
1
6
For PositronicLlama
Water Jars
object
map
index
min
join
1
3
split
Web Log Sessions
setdefault
datetime.timedelta
timedelta
datetime.datetime
round
1
7
Preprocess
Parity Bit Generator
chr
bin
lambda
count
join
2
Pochmannia!
Rolling 🎲!
itertools.pairwise
pairwise
reversed
as
dict-comp
2
2
I'll just return a map.
Hexagonal Islands
collections.deque
deque
itertools.product
product
update
2
2
Cycle (de)composition
Rolling 🎲!
itertools.pairwise
pairwise
reversed
get
dict
2
14
f.removesuffix.removeprefix
Write Quadratic Equation
case
match-case
f-string
abs
not
3
Bits and pieces
Parity Bit Generator
chr
format
map
lambda
count
8
4
Eats, stars, and reverses
Replace with Biggest
itertools.accumulate
accumulate
reversed
itertools
max
18
4
Author's pythonified
Rolling 🎲!
dict
range
int
str
for
19
Utilities
Super Root
math.exp
exp
math.log
log
reversed
Shelter
Finite
Ghosts Age
get
1
33
complex is better than complicated
The Lantern Festival
set-comp
remove
enumerate
break
not
1
1
Indented
Pattern Recognition
list-comp
range
comprehension
len
for
1
16
deqtuenary
Landing Site
discard
collections.deque
deque
ascii_uppercase
string.ascii_uppercase
1
I'm feeling lucky
Four To The Floor
numpy.rand
numpy.seed
rand
numpy.random
seed
1
2
Talking 'bout my generation
ADFGVX Cipher
fromkeys
isalnum
divmod
values
get
2
3
Incredible
Ghosts Age
lambda
3
6
I forgot about this one :)
AMSCO Cipher
islice
itertools.islice
cycle
itertools.cycle
itertools.zip_longest
8
spec ^ lit <= broken
Seven Segment
difference
frozenset
union
set-comp
islower
10
Sparse is better than dense.
The Nearest Square Number
bisect.bisect_right
bisect_right
bisect.bisect_left
bisect_left
bisect
13
20
I squirt
The Nearest Square Number
isqrt
math.isqrt
math
min
abs
EAFP
Completely Empty
contextlib.suppress
suppress
contextlib
with
TypeError
17
Codeship
Complement
Pearls in the Box
lambda
count
len
1
4
Two Counters
The Square Chest
collections.Counter
Counter
items
collections
map
1
2
Generatingfunctionology
Probably Dice
lambda
inline-if
sum
range
comprehension
1
9
Exceptional
Unfair Dice
StopIteration
raise
except
try
inline-if
1
7
frozenbat
Bats Bunker
complex
class
frozenset
reverse
type
1
8
Permuted
The 88th Puzzle
class
reverse
type
yield
get
1
2
Very naive
Minesweeper
yield
collections.Counter
Counter
collections
enumerate
3
Off with her head!
Snake Lite
class
reverse
type
yield
get
3
10
Couldn't resist :-P
Magic Domino
3
Bukebuer's halved
Magic Domino
combinations_with_replacement
itertools.combinations_with_replacement
frozenset
itemgetter
operator.itemgetter
4
Unexceptional
Unfair Dice
next
yield
inline-if
sum
elif
5
1
Preprocessed
The Square Chest
set-comp
tuple
sum
sorted
list-comp
11
1
Hermit
Sunflower
Colder-Warmer
ZeroDivisionError
divmod
zip
None
abs
1
13
Basic
Integer Palindrome
divmod
while
1
2
Optimistic
Ore In The Desert
set-comp
all
round
pop
abs
1
23
code<FONT
Mono Captcha
set-comp
min
lambda
join
if-comprehension
1
11
Brute
Reverse Engineer
ZeroDivisionError
Fraction
fractions.Fraction
fractions
eval
1
2
twoliner
Ore In The Desert
divmod
all
min
abs
lambda
1
Obvious
Break Rings
itertools.product
product
itertools
min
set
2
10
Rings, links, bits and sets...
Break Rings
union
min
set
lambda
list-comp
2
12
(Parentheses)
Colder-Warmer
set-comp
all
zip
pop
abs
2
17
Count the f's --- an exercise in perception
Fractions Addition
itertools.starmap
starmap
Fraction
fractions.Fraction
fractions
2
6
sympy
Simplification
replace
lambda
str
2
3
receive, review, rewrite, reveal, relish
Anagrams By Stacks
slice
collections.deque
deque
f-string
add
3
6
Universal
Anagrams By Stacks
AssertionError
class
reverse
type
yield
7
2
No diggity, but digity
Integer Palindrome
divmod
bool
while
int
8
6
Splitting fields
Strawberry Fields
math.degrees
degrees
math.acos
acos
round
15
Tutti brutti
Reverse Engineer
ZeroDivisionError
itertools.count
Fraction
fractions.Fraction
fractions
17
Et tu, Brute Force?
Network Loops
difference_update
collections.defaultdict
defaultdict
add
collections
7
Thanksgiving
Count Consecutive Summers
itertools.count
yield
collections.Counter
Counter
values
Watchtower
Dynamursion
DNA Common Sequence
functools.lru_cache
lru_cache
set-comp
decorator
functools
1
13
Savage
Numbered Triangles
max
lambda
if-comprehension
list-comp
comprehension
1
21
Filter all
Magic Square
difference
divmod
filter
ValueError
all
1
10
2*54
Number Guess
set-comp
all
set
max
lambda
1
1
accumulate
Vigenere Cipher
startswith
ord
zip
lambda
join
1
5
def def def
Compare Functions
Exception
is
pass
map
None
2
Boring
Convex Hull
cmath.phase
phase
cmath.pi
cmath
pi
2
2
Explained
Vigenere Cipher
itertools.accumulate
accumulate
startswith
ascii_uppercase
string.ascii_uppercase
3
4
One honking great idea
Compare Functions
contextlib.suppress
suppress
contextlib
with
fromkeys
4
Rotate floor
Rotate Hole
itemgetter
operator.itemgetter
collections.deque
deque
operator
4
5
Rebound
Funny Addition
sum
5
4
2*54 3.3
Number Guess
set-comp
all
set
max
lambda
5
14
Larmouth
Bulls and Cows
functools.lru_cache
lru_cache
math.log
log
itertools.permutations
9
2
Chessboard
Funny Addition
map
inline-if
sum
list-comp
range
11
4
O RLY?
Funny Addition
sum
14
6
Stringly typed
Funny Addition
classmethod
class
translate
zfill
reversed
4
Slanted
Numbered Triangles
itertools.permutations
permutations
yield
as
itertools
The adder is half-full
Funny Addition
while
4
Escher
min of dict of enumerate of zip of splitlines of strip by count of columns of argument of key of min
The Stone Wall
splitlines
strip
dict
zip
enumerate
1
8
A simple complex mapping.
Compass, Map and Spyglass
values
dict-comp
enumerate
abs
max
3
4
if put(key) == lock:
Keys and Locks
hash
splitlines
set-comp
strip
enumerate
3
2
Déjà vu
The Ship Teams
items
sorted
append
for
4
6
Generation X (and Y)
Ground for the House
splitlines
yield
ValueError
zip
enumerate
4
1
Tear them apart!
The Secret Room
functools.lru_cache
lru_cache
divmod
decorator
endswith
4
2
Anger management
Safe Code
contextlib.suppress
suppress
contextlib
with
digits
4
2
Vectors FTW(D)
Wild Dogs
NamedTuple
typing.NamedTuple
operator.sub
classmethod
itertools.starmap
7
2
Not On Map
dicountiary
Aggregate and Count
collections.Counter
Counter
dict
collections
list
2
6
Just Use A Counter
Most Wanted Letter
filter
collections.Counter
Counter
values
items
5
2
Basic
Base change - Position System
digits
string.digits
reverse
ascii_uppercase
string.ascii_uppercase
Half of one, quarter of the other
Length of the String
len
2