37
Stensen
19 36 53 Leader of the month
8289/ 8695
Last seen 4 days ago
Member for 3 years, 8 months, 16 days
Difficulty Normal
The Fox!

Missions (239) / Solutions (284)
Best solutions / Newest solutions
Initiation
1-liner works just as much as I can hope
Replace First
not
lambda
inline-if
len
1
6
1-liner: right padded '_' using ljust
Split Pairs
ljust
re.split
filter
map
re
2
1-liner not
Is Even
not
lambda
3
2
zip_longest does the job
Split Pairs
itertools.zip_longest
zip_longest
iter
itertools
lambda
8
4
1-liners: third one passed all tests
Nearest Value
min
abs
lambda
comprehension
9
2
1-liner
Easy Unpack
lambda
16
1
1-liner
End Zeros
lambda
split
str
len
16
2
1-liner
All the Same
set
lambda
inline-if
True
len
16
2
2-liners: both functions work the same
The Most Frequent
max
lambda
count
sorted
1
1-liner max
Max Digit
max
lambda
list-comp
comprehension
int
2
1-liner always keep the f_letter uppercase
Correct Sentence
endswith
upper
not
lambda
inline-if
1
1-liner
First Word (simplified)
lambda
split
1
1-liner made easy in map filter & re.split
Split Pairs
filter
map
None
lambda
inline-if
1
1-liner
Count Digits
isdigit
lambda
if-comprehension
list-comp
comprehension
2
1-liner
Multiply (Intro)
lambda
1-liner
Sum Numbers
isnumeric
filter
map
lambda
sum
3
1-liner made even easier with list
Max Digit
map
max
lambda
list
int
2
1-liner: numpy.roll
Replace First
lambda
1
1-liner
All Upper I
strip
isupper
bool
not
lambda
itertools zip_longest docs adapted
Split Pairs
itertools.repeat
repeat
chain
itertools.chain
iter
2
1-liner
Remove All Before
index
lambda
inline-if
in
1-liner cutting
Between Markers (simplified)
index
lambda
1-liner
Number Length
lambda
str
len
1
1-liner
Acceptable Password I
lambda
len
2
1-liner: deque
Replace First
1
1-liner
Beginning Zeros
lambda
split
str
len
2
1-liner made easy
All Upper I
upper
lambda
1
1-liner
Is Even
lambda
1-liner
Backward String
lambda
2
Home
6-liner: numpy.where
Duplicate Zeros
numpy.where
where
numpy.array
array
numpy
1
2-liner strftime the saver
Date and Time Converter
f-string
map
inline-if
split
int
2
2
1-liner
Popular Words
dict-comp
lower
lambda
count
split
2
2
1-liner: import numpy as np
Split List
array_split
numpy.array_split
numpy
as
lambda
2
1-liner
Morse Decoder
capitalize
replace
lambda
join
list-comp
3
1-liner
Days Between
as
datetime.datetime
datetime
abs
lambda
3
4
1-liner
Second Index
index
None
lambda
count
inline-if
3
1-liner
Sort Array by Element Frequency
index
lambda
count
sorted
4
1
1-liner
Sun Angle
lambda
inline-if
split
int
4
1
1-liner
Split List
lambda
inline-if
len
6
1-liner
Between Markers
index
lambda
inline-if
in
len
8
1-liner made even easier with itertools.chain.from_iterable & collections.Counter
Sort Array by Element Frequency
lambda
list-comp
list
comprehension
9
2-liner
Pawn Brotherhood
ord
set
or
sum
if-comprehension
2
1-liner
Backward Each Word
lambda
join
list-comp
split
comprehension
2
1-liner
Bigger Price
lambda
sorted
True
array.array for speed
Non-unique Elements
array.array
array
continue
count
append
1-liner
First Word
filter
strip
None
lambda
split
itertools & collections.Counter
Sort Array by Element Frequency
chain
itertools.chain
as
collections.Counter
Counter
1
1-liner
Even the Last
lambda
inline-if
sum
4
10-liner: length of all possible changes except the initial step
Changing direction
None
not
inline-if
and
append
8-liner: Iterate over min-> max via step and find missing number
Missing Number
min
abs
max
range
list
1-liner
Three Words
filter
None
max
lambda
list-comp
2
1-liner
Right to Left
map
replace
lambda
join
list
1
1-liner
Non-unique Elements
lambda
count
if-comprehension
list-comp
comprehension
4
Electronic Station
All possible combinations
Remove Brackets
combinations
itertools.combinations
itertools
enumerate
None
1
7
1-liner: str.isupper
All Upper II
isupper
str
1
3
1-liner
Unix Match. Part 1
r-string
None
replace
lambda
1
2
1-liner
Acceptable Password IV
not
lambda
inline-if
and
True
2
1
thats not a practical solution
Similar Triangles
math.acos
acos
math.sqrt
sqrt
math
3
2
1-liner
Unix Match. Part 2
r-string
None
replace
lambda
3
2
4-liner: Sympy Polygon
Inside Block
sympy.Polygon
Polygon
sympy
any
or
3
1liner
All Upper II
isupper
lambda
5
1-liner
All Upper II
strip
upper
lambda
inline-if
False
5
2
1-liner
Ascending List
all
lambda
inline-if
True
list-comp
5
7-liner: short and fast
Remove Brackets
extend
dict-comp
chr
ord
enumerate
6
1-liner
Acceptable Password III
not
lambda
and
len
7
16-liner: Path-Finding -> Visited Neighbors are ignored
Can You Pass?
add
continue
IndexError
pop
except
8
2
Use rpartition as a key to sorted
Sort by Extension
rpartition
lambda
inline-if
sorted
8
3-liner: issubset does a better job hindering the False statements
Words Order
issubset
enumerate
set
not
sorted
8
2-liner: reduce & operator.mul
Digits Multiplication
mul
operator.mul
operator
functools.reduce
reduce
11
7-liner: remove numbers! Compare Brackets ¯\_( ͡▀̿ ̿ ͜ʖ ͡▀̿ ̿ )_/¯
Brackets
extend
dict-comp
chr
ord
enumerate
12
1-liner passes the test while it is not accurate
Acceptable Password II
not
lambda
and
len
12
1-liner
Acceptable Password V
not
lower
lambda
inline-if
and
12
1-liner not accurate but passes the set
Surjection Strings
dict-comp
zip
set
lambda
inline-if
18
1-liner
Acceptable Password VI
set
not
lower
lambda
inline-if
20
2-liner sorted
Verify Anagrams
lower
lambda
sorted
if-comprehension
list-comp
29-liner: disjunction of cases
Find Sequence
zip
enumerate
None
break
set
Second
Digits Multiplication
mul
operator.mul
operator
functools.reduce
reduce
1
9-liner: operator module
Boolean Algebra
operator.pow
eq
operator.eq
and_
operator.and_
1
2-liner
Verify Anagrams
lower
lambda
sorted
1
Scientific Expedition
1-liner
Goes Right After
index
lambda
inline-if
in
False
1
5
1-liner: thank to the text transform function
YAML. More Types
splitlines
filter
strip
dict-comp
map
1
1
3-liner: unicodedata normalization
Remove Accents
filterfalse
itertools.filterfalse
combining
unicodedata.combining
normalize
1
5
Used What I've learnt lately :D Walruses, numpy.trnaspose and right padding(ljust)
The Hidden Word
ljust
splitlines
numpy.array
array
numpy
1
1-liner
Conversion from CamelCase
filter
None
lower
lambda
join
2
1-liner re make the work looks professional
YAML. Simple Dict
M
re.M
findall
re.findall
r-string
2
1
very explicit
YAML. Simple Dict
update
filter
dict
None
isdigit
3
1-liner: index fetching
Caps Lock
upper
enumerate
lambda
join
list-comp
3
2
1-liner
Conversion into CamelCase
capitalize
lambda
join
list-comp
split
3
1-liner: re Context of reference to group \g<0> == \1
Bird Language
re.sub
sub
r-string
re
lambda
4
9-liner: numpy.rot90(grille, -1) in a loop
Cipher Map
numpy.rot90
rot90
numpy.array
array
numpy
4
2
1-liner
Sum by Type
type
is
lambda
sum
join
4
2
1-liner puzzling
Follow Instructions
tuple
for
5
1-liner
Pangram
set
lower
lambda
len
5
1-liner
Absolute Sorting
abs
lambda
sorted
7
1-liner
Common Words
lambda
sorted
join
if-comprehension
in
7
1-liner
Time Converter (24h to 12h)
f-string
inline-if
split
int
9
1
1-liner
Follow Instructions
lambda
count
11
3
5-liner: used the built-in translate to MorseCode it
Morse Clock
rjust
translate
zfill
f-string
bin
13
1
1-liner sort by frequency taking precautions using asccii_lowercases
The Most Wanted Letter
index
lower
lambda
count
sorted
13
1
1-liner collections.Counter
The Most Wanted Letter
ord
lower
lambda
sorted
14
1
7-liner: defaultdict
Convert and Aggregate
collections.defaultdict
defaultdict
dict
tuple
collections
14
1
11-liner: cost is 2 times coins when price gt 100
Call to Home
math.ceil
ceil
collections.defaultdict
defaultdict
values
16
2
1-liner re
Secret Message
lambda
join
18
1
4-liner: Modify the output after each command
Letter Queue
inline-if
split
for
11-liner: had to assign consonants and vowels a sign number
Striped Words
re.split
filter
dict-comp
r-string
isalpha
Counter
The Most Wanted Letter
collections.Counter
Counter
findall
re.findall
collections
2
1-liner
Secret Message
isupper
lambda
join
if-comprehension
list-comp
1
Moment of Honesty
I Love Python!
4
O'Reilly
7-liner: if you can't dimension it, Stringify it
How Deep
max
str
for
if
1
4
2-liner: Think of it as a coincidance
Median of Three
statistics.median
statistics
median
lambda
inline-if
1
1-liner: itertools.groupby
Compress List
groupby
itertools.groupby
itertools
lambda
comprehension
1
1
4-liner: Done using chain & zip
Chunk
chain
itertools.chain
itertools
zip
None
1
made easier using insert
Sort Except Zero
insert
filter
enumerate
None
sorted
2
1
1-liner
Remove All After
index
lambda
inline-if
in
2
13-liner: check every single words permutations
Cipher Crossword
setdefault
itertools.permutations
permutations
get
any
3
2
3-liner
Reverse Every Ascending
reversed
extend
zip
if-comprehension
list-comp
3
1-liner: sorted by count & index(natural order)
Frequency Sorting
index
max
lambda
count
sorted
4
4-liner: sum it up
Sum of Digits
map
lambda
sum
while
int
4
2
Generator Version
Flatten a List (generator version)
TypeError
iter
yield
isinstance
except
4
1-liner
Index Power
lambda
inline-if
len
5
1
1-liner
Majority
lambda
count
inline-if
False
True
5
1
using numpy
Median
numpy.median
median
numpy
as
lambda
5
1-liner: chr translation
String-2-Matrix
chr
upper
tuple
lambda
inline-if
5
1-liner numpy
Median
lambda
6
2-liner: chr and edge case handling
Matrix-2-String
from_iterable
itertools.from_iterable
chain
itertools.chain
chr
6
1-liner statistics
Median
lambda
7
12-liner: optimized thanks to Phil15
Cipher Crossword
setdefault
itertools.permutations
permutations
get
any
7
1-liner pure lingo
Median
sort
len
9
1-liner: itertools.compress
Compress List
compress
itertools.compress
itertools
lambda
list-comp
9
2
1-liner: basically each substring is enumerated
Count Inversions
enumerate
lambda
sum
comprehension
11
1
compressed
Compress List
not
append
for
if
11
9-liner: sort by characters & maintain the NEW order
Determine the Order
filter
all
remove
map
None
11
1
7-liner: convert datetime to total seconds
Lightbulb Intro
operator.sub
iter
operator
next
reversed
11
3
1-liner
Chunk
lambda
list-comp
range
comprehension
len
14
4-liner: All possibles moves in 1set
Xs and Os Referee
zip
inline-if
join
in
list-comp
15
2
Using Generators
Flatten a List
TypeError
iter
yield
isinstance
except
17
5-liner: longest conditional line I've ever written
Time Converter (12h to 24h)
re.split
zfill
f-string
r-string
re
18
1
9-liner: Well I had to Brute Force
Loading Cargo
itertools.permutations
permutations
set-comp
itertools
min
18
Function Recursion
Flatten a List
isinstance
append
list
int
for
Flat dictionary using Function Recusrsion
The Flat Dictionary
rindex
update
type
dict
items
1-liner: statistics already have it
Median
Reversed at its finest
Integer Palindrome
lambda
str
1
Best One liners ever
Median
as
1-liner
Replace Last
lambda
inline-if
len
2
17- liner: condition for start_watching
Lightbulb Start Watching
operator.sub
itertools.starmap
starmap
Optional
typing.Optional
Incinerator
Unicity is a must! ;)
Every Person is Unique
dataclass
dataclasses
dataclasses.dataclass
class
startswith
2
8-liner: Setup city_name after instantiating for the first time
Capital City
class
object
is
None
lambda
3
After All Strategy Design Pattern was helpful
Geometry Figures
math.tan
tan
Decimal
decimal.Decimal
decimal
4
23-liner: collections.defaultdict(set) does pretty much the job
Friends
class
set-comp
add
items
tuple
4
1
17-liner: The Language was Hacked Successfully!
Hacker Language
class
isspace
itertools.zip_longest
zip_longest
re.split
5
15-liner: The City Has Been Built Made Carefully
Building Base
dataclass
dataclasses
dataclasses.dataclass
class
f-string
6
1
11-liner: you cannot copy a shallow version, so deepcopy it
Text Editor
class
copy.deepcopy
deepcopy
copy
f-string
6
No Oven is left behind!
Microwave Ovens
combine
datetime.combine
OverflowError
finally
datetime.time
6
The Warriors: Shortened after solving army battles
The Warriors
class
property
super
decorator
inline-if
10
1
20-liner: Swordsman, Lancer & Archer Are all Soldiers
Army Units
dataclasses.make_dataclass
make_dataclass
ABCMeta
abc.ABCMeta
abc.abstractmethod
10
Do you think your code can defend mine? I don't think so
The Defenders
class
staticmethod
property
super
type
12
2
23-liner: Your TV have been controlled succesfully (Detailed Code)
Voice TV Control
class
or
inline-if
in
range
13
Can you beat my Army?
Army Battles
class
staticmethod
property
super
type
14
1
I am Moving Everything Into the Classes
The Vampires
class
staticmethod
property
super
type
14
20-liner: HumanoRobotic Dialogues Have been Achieved Successfully
Dialogues
dataclass
dataclasses
dataclasses.dataclass
class
f-string
16
14-liner: The Momento Storing Class Have Shown Cool Efforts
Text Editor
class
f-string
lambda
append
19
10-liner: Everyone is Invited to the Party!
Party Invitations
class
f-string
remove
lambda
append
1
All Clients are served :P
3 Chefs
ABCMeta
abc.ABCMeta
dataclass
dataclasses
dataclasses.dataclass
7-liner: sequential indexing
Multicolored Lamp
class
inline-if
Can you defeat me?
The Warriors
class
property
decorator
break
not
1
Mine
4-liner: aim for the accuracy dawg
Determinant
numpy.exp
exp
numpy.linalg
linalg
numpy
2
2
58-liner: It'd be better instead of 20 collisions, a limit distance where the fly dies.
Escape
copysign
math.copysign
itertools.starmap
starmap
itertools
2
2
2-liner: thanks itemgetter
Best Stock
itemgetter
operator.itemgetter
operator
items
lambda
3
hexed coordinates
Find Enemy
ord
abs
max
lambda
elif
3
1
1-liner: numpy determinant
Determinant
numpy.linalg
linalg
numpy
as
lambda
3
4
15-liner: Generate possible moves of moves @ each count
Chess Knight
itertools.starmap
starmap
update
filter
f-string
4
1-liner: split conditions into list of lists
Fizz Buzz
lambda
str
7
9-liner: Cut by split & go on each stack
Cut Sentence
pop
break
inline-if
while
split
7
1
10-liner: re.sub
Caesar Cipher (decryptor)
re.sub
sub
r-string
ord
enumerate
7
1
1-liner: formatting strings
Binary Count
format
lambda
count
8
1
10-liner: had to make some changes to my previous solution
Caesar Cipher (encryptor)
as
ord
enumerate
isalpha
lambda
8
2-liner: SymPy equation solver
Achilles and the Tortoise
float
lambda
sum
10
1
7-liner: builtin functions
Caesar Cipher (decryptor)
isspace
chr
ord
enumerate
isalpha
13
Created GCD as Euclid Algorithm
The Greatest Common Divisor
for
if
16
4-liner: functools.cmp_to_key is a useful sorting key
Bigger Together
cmp_to_key
functools.cmp_to_key
reversed
functools
map
1-liner: numpy det
Determinant
as
5-liner: looping gcd through args
The Greatest Common Divisor
math.gcd
gcd
math
for
10-liner: had to create my replace function
Caesar Cipher (encryptor)
ascii_lowercase
string.ascii_lowercase
as
string
ord
1-liner: fomatting strings in binary
Binary Count
format
replace
lambda
operations table
Aggregate by Operation
operator.truediv
truediv
operator.sub
operator.add
ZeroDivisionError
conditionals
Fizz Buzz
str
if
1
1-liner
Binary Count
bin
replace
lambda
len
1
Respect the grid boundaries & Play With DIRS navigation
Moore Neighbourhood
operator.add
operator
add
map
continue
2
Ice Base
6-liner: time module & our the hour-min equation
Clock Angle
time.strftime
time.strptime
rsplit
strftime
fabs
2
2-liner: literally generate every possible square!
Largest Rectangle in a Histogram
min
max
lambda
if-comprehension
range
2
simplified by fractions.Fraction
Oil Pie
Fraction
fractions.Fraction
fractions
abs
sum
3
17-liner: Count 🔗 1 by 1
Count Chains
dist
math.dist
collections.defaultdict
defaultdict
collections
3
4-liner: remove all zeros and add them at the end
Move Zeros
remove
count
range
list
int
4
itertools.product and np.rot90
Identify Block
arange
numpy.arange
numpy.rot90
rot90
itertools.product
6
1-liner
Find Quotes
lambda
inline-if
in
7
1
12-liner: path-finding neighbor friends
How to Find Friends
add
pop
replace
while
in
9
4
Thanks stackoverflow
Roman Numerals
replace
for
10
1
8-liner: Dynamic Programming Implementation
Making Change
min
None
inline-if
range
for
12
1-liner
Morse Encoder
lower
lambda
join
list-comp
comprehension
13
1
1-liner
Roman Numerals
lambda
14
2-liner re.finditer
Long Repeat
finditer
re.finditer
r-string
re
bool
1-liner
Monkey Typing
lower
lambda
sum
if-comprehension
in
7-liner: Points in a Quarter Circle Can Be Useful
Counting Tiles
itertools.product
product
math.ceil
ceil
math.sqrt
9-liner: Feed Pigeons the right way!
Feed Pigeons
extend
filter
None
break
inline-if
3
1-liner
The Most Numbers
min
max
lambda
inline-if
Alice In Wonderland
4-liner: conditionals
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
inline-if
1
1
2-liner: numpy Transposition method
Transposed Matrix
numpy.array
array
numpy
as
lambda
3
2-liner: strptime
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
lambda
5
2
4-liner: Swap each pair
Swap Nodes
range
len
for
5
11-liner: sum of all operations(and, or & xor) at once
Multiplication Table
bin
map
lambda
or
sum
7
1
1-liner: Transposition using zip
Transposed Matrix
zip
map
lambda
list
12
2
9-liner: Function recursion for the leaves of fall
Tree Walker
type
isinstance
values
dict
tuple
12
1-liner: proceed by each chunk of data
Long Non Repeat
max
not
append
range
else
18
6-liner: How many winners are there?
The Fastest Horse
collections.defaultdict
defaultdict
collections
index
min
20
2
Caught the ZIGZAG *_*
Zigzag Array
reversed
enumerate
append
list-comp
range
2-liner: ceil & floor
Middle Characters
math.floor
floor
math.ceil
ceil
as
GitHub
Merge Intervals as a Generator Version
Merge Intervals
yield
max
not
sorted
elif
1
9-liner: Generator
Merge Intervals (generator version)
yield
max
not
sorted
elif
1
2-liner: numpy rot90 * 3 & enumerate the indexing
The Highest Building
numpy.sum
numpy.rot90
rot90
itemgetter
operator.itemgetter
2
2-liner: itertools.permutations
The End of Other
itertools.permutations
permutations
any
itertools
lambda
15
9-liner: enumerate each interval
Create Intervals
zip
enumerate
sorted
append
for
10-liner: Counter & defaultdict
The Most Frequent Weekdays
collections.defaultdict
defaultdict
datetime.timedelta
timedelta
datetime.datetime
1
Dropbox
1-liner hash
Simple Hashlib
bytes
lambda
6
1
8-liner: Sympy Circle of 3x Points
Three Points Circle
sympy.geometry.Circle
Circle
sympy.geometry.Point
ast.literal_eval
literal_eval
6
know your place -_-
Worth of Words
lambda
sum
sorted
comprehension
12
Why 101?
The Best Number Ever
1
7-liner: Got Palindormes
The Longest Palindromic
and
range
len
for
if
15-liner: working perfect for <= 9999
Speech Module
join
elif
append
if
2
PyCon TW
12-liner: Solved a System of Linear Equations
How Much Gold
solve_linear_system
sympy.solve_linear_system
sympy.Matrix
Matrix
numpy.vstack
1
2-liner: groupby made it easy
Sum Consecutives
groupby
itertools.groupby
itertools
lambda
sum
3
If you are stuck ar-range it!
Ryerson Letter Grade
pop
lambda
if-comprehension
in
list-comp
10
10-liner: Robotic Sorting
Robot Sort
f-string
sorted
while
range
list
10
10-liner: Digits Stacked Perfectly
Digit Stack
pop
in
and
append
int
13
18-liner: jump from island to island.
Calculate Islands
extend
add
continue
pop
lambda
19
6-liner: thanks to Heron’s formula
Simple Areas
math.prod
prod
math.pi
pi
math.sqrt
1
7-liner: reverse it in order to make it easy
Golden Pyramid
reverse
enumerate
max
list-comp
range
5-liner: pure regex
House Password
re.search
search
r-string
re
None
4-liner: Satisfy All Conditions line by line
House Password
re.compile
compile
islower
r-string
any
1
Storage
2-liner: Used groupby for the second time in a single day
Group Equal consecutive
groupby
itertools.groupby
itertools
lambda
list-comp
2
2-liner: MATRIX TRANSPOSED & enumerated by coords
Weak Point
numpy.array
array
numpy
as
enumerate
2
2-liner: Use As Much Conditions As You Can, It's Free ;)
Word Pattern
zfill
all
bin
zip
isdigit
2
7-liner: datetime: placeholder & formatter
Convert Date
datetime.strptime
strptime
datetime.datetime
ValueError
datetime
5-liner: numpy.allclose
Skew-symmetric Matrix
allclose
numpy.allclose
numpy.array
array
numpy
HubSpot
thanks to defaultdict I was able to link Nodes
Node Disconnected Users
collections.defaultdict
defaultdict
insert
values
add
1
4
1-liner
Weekly Calendar
pop
lambda
if-comprehension
in
list-comp
2
5
3-liner: splitted by new lines
Non Empty Lines
filter
strip
map
None
not
2
48-liner: Generate connections & start path-finding
Triangular Islands
typing.Set
Set
update
add
continue
5
2-liner: itertools.zip_longest
The Hamming Distance
itertools.zip_longest
zip_longest
as
bin
itertools
7
11-liner: Pretty The Dream of eveyone
Number Base
with
class
object
ValueError
pass
9
1
3-liner: bascially checkio = int if no error to catch
Number Base
ValueError
except
try
int
20
1
1-liner: evaluate it
Restricted Sum
eval
map
lambda
join
str
Blizzard
3-liner: loop all over the numbers
Stair Steps
max
for
2
35-liner: Backtracking Algo
Sudoku Solver
None
not
False
and
True
2
1
1-liner: palindrome thanks to textreverse.com
Palindromic Palindrome
lambda
3
11-liner: Function Recursion
String Conversion
functools.lru_cache
lru_cache
decorator
functools
min
4
1-liner date extended by timedelta
Weekend Counter
datetime.timedelta
timedelta
datetime
lambda
sum
6
2-liner: date split into mm-13-yyyy dates
Unlucky Days
date
datetime.date
datetime
lambda
count
7
1
thanks to timedelta
Weekend Counter
datetime.timedelta
timedelta
datetime
inline-if
while
8
1
HOLY BOOLEAN
The First Working Day
datetime.strptime
strptime
datetime.timedelta
timedelta
datetime.datetime
8
1-liner: thanks re.search +[!-.]* pattern replacement
Stressful Subject
endswith
re.search
search
any
isupper
2
4-liner: How many squares in a set of squares!
Rectangles Union
itertools.product
product
set-comp
itertools
range
1
6-liner: thanks wikipedia for the equations
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
1
Rock
10-liner: Sort By Catching IndexError
Sort by Removing
finally
continue
IndexError
except
try
1
2
3-liner: W Lambert Function
Super Root
lambertw
scipy.special.lambertw
math.exp
exp
scipy
2
1
7-liner: Sorted By Copy And Clear
Sort by Removing
clear
not
elif
append
list
3
3
Shelter
10-liner: numpy slicing 2D-Arrays
Pattern Recognition
ast.literal_eval
literal_eval
ast
numpy.array
array
1
1
2-liner: My own Iterable Checker
Completely Empty
hasattr
iter
all
lambda
or
3
30-liner of nice-scattered code
ADFGVX Cipher
itertools.zip_longest
zip_longest
itemgetter
operator.itemgetter
collections.defaultdict
11
29-liner: apply sieve table to the encoded message
AMSCO Cipher
itertools.zip_longest
zip_longest
itertools
index
or
11
8-liner: Mainly specified each single case.
Completely Empty
hasattr
type
is
None
not
15
2-liner: so much math
The Nearest Square Number
math.pow
math.floor
floor
pow
math.ceil
17
Hermit
1-liner: sympy
Simplification
expand
sympy.expand
sympy
replace
lambda
3
7-liner: set concept
Unique Email Addresses
add
replace
set
in
split
4
Watchtower
1-liner: checkio = sum
Funny Addition
sum
Escher
1-liner: Perfect Combo
The Stone Wall
splitlines
filter
strip
zip
enumerate
2
8-liner: min of min indexes and max of max indexes
Ground for the House
rindex
re.split
set-comp
extend
filter
3
13-liner: normalize distances
Compass, Map and Spyglass
numpy.where
where
numpy.array
array
numpy
5
1
3-liner
The Ship Teams
lambda
or
sorted
if-comprehension
list-comp
4-liner: set concept
The Ship Teams
difference
set-comp
keys
set
sorted
3
Not On Map
collections.Counter
Most Wanted Letter
collections.Counter
Counter
findall
re.findall
collections
3
1-liner: str Class Method
Length of the String
str
5
2
6-liner: defaultdict does the job
Aggregate and Count
collections.defaultdict
defaultdict
dict
collections
list
6