20
Splitter
6 26 39
2210/ 2445
Sergei
Last seen 10 months ago
Member for 4 years, 10 months, 12 days
Difficulty Normal
Missions (100) / Solutions (103)
Best solutions / Newest solutions
Initiation
Compressed, with `min`
Nearest Value
min
abs
set
lambda
or
3
1
Concise
All the Same
Any
typing.Any
all
List
typing.List
11
`list.index` and ValueError handling
Remove All Before
ValueError
index
typing.Iterable
Iterable
except
2
2 identic iterators and `zip`
Split Pairs
iter
zip
map
join
list
lstrip and len
Beginning Zeros
lstrip
int
str
len
2
upper and rstrip(.)
Correct Sentence
rstrip
upper
str
1
With `min`
Nearest Value
min
abs
set
lambda
in
re.findall, map and sum
Sum Numbers
findall
re.findall
r-string
map
re
Is it simple enough for you, Elena? Or is it too complicated again?
All Upper I
strip
isupper
isdigit
bool
or
1
List comprehension
Split Pairs
list-comp
range
comprehension
len
if
rstrip
End Zeros
rstrip
abs
int
str
len
2
re.match
End Zeros
match
re.match
r-string
re
int
1
all, map, isalpha, isupper
All Upper I
all
map
isupper
isalpha
bool
sorted and [::-1]
Max Digit
sorted
int
str
An obvious way
All the Same
Any
typing.Any
List
typing.List
bool
4
string.digits and filter
Count Digits
digits
string.digits
filter
string
lambda
Simple slice
Backward String
str
Home
itertools.islice
Even the Last
islice
itertools.islice
itertools
None
inline-if
7
1
Nested list
Sort Array by Element Frequency
from_iterable
itertools.from_iterable
chain
itertools.chain
filter
9
Additional list, "in" check and slices
Non-unique Elements
enumerate
or
in
append
for
12
3
Degrees per one minute
Sun Angle
round
or
int
if
20
2
str.index, exception handling and slice
Second Index
index
None
except
try
int
20
Simple str.find
Second Index
find
None
int
str
if
4
collections.Counter
Popular Words
fromkeys
update
collections.Counter
Counter
dict-comp
sort and lambda
Bigger Price
sort
lambda
True
list
int
text.find and if's
Between Markers
find
inline-if
str
len
if
filter() and count()
Non-unique Elements
filter
lambda
count
re.sub with callable repl
Backward Each Word
re.Match
Match
re.sub
sub
r-string
4
Finding the first index of the second list
Split List
list
len
2
According to hints and more concise
Non-unique Elements
count
if-comprehension
list-comp
comprehension
Simple and concise with re.search
First Word
re.search
search
r-string
re
str
2
str.lstrip
First Word
lstrip
isalpha
break
or
else
According to hints
Non-unique Elements
count
append
for
if
ord(), chr() and if statements
Pawn Brotherhood
f-string
chr
ord
in
elif
2
re.search and f-string
Second Index
rf-string
f-string
re.search
search
re
Using datetime module
Date and Time Converter
f-string
datetime.datetime
datetime
inline-if
str
2
map, split and join
Morse Decoder
upper
map
lambda
join
split
2
lower, split and count
Popular Words
dict
lower
count
split
list
3
Electronic Station
re.match, more intricate patterns, no comparisons
All Upper II
match
re.match
r-string
re
bool
6
1
Self-documenting with a dictionary and 'all' function, after asserts fixing
Acceptable Password VI
values
all
any
isdigit
bool
7
2
By sides proportion + itertools.combinations
Similar Triangles
combinations
itertools.combinations
Tuple
typing.Tuple
set-comp
1
Is it simple enough for you, Elena?
All Upper II
isupper
bool
str
1
str.strip, string module and filter
All Upper II
digits
string.digits
ascii_uppercase
string.ascii_uppercase
filter
Obvious loop
Ascending List
typing.Iterable
Iterable
bool
typing
False
1
Scientific Expedition
re.search
Goes Right After
rf-string
f-string
re.search
search
re
6
Simple with str.find, fixed
Goes Right After
find
bool
in
and
str
10
Banal
Time Converter (24h to 12h)
inline-if
split
int
if
14
Dense
Common Words
next
map
set
lambda
sorted
18
Loop
Bird Language
while
in
elif
len
if
re.split
Conversion from CamelCase
re.split
r-string
re
lower
join
2
Simple and sparse
Common Words
set
lambda
sorted
join
split
Regex
Bird Language
re.sub
sub
r-string
re
str.translate
Striped Words
translate
filter
upper
isalpha
lambda
2
filter() and join()
Secret Message
filter
isupper
join
str
1
List comprehensions and zip
Cipher Map
zip
join
if-comprehension
list-comp
range
2
'for' loop and type check as an index
Sum by Type
Tuple
typing.Tuple
type
tuple
typing
Simple with str.find
Goes Right After
find
bool
str
5
collections.Counter and itertools.takewhile
The Most Wanted Letter
itertools.takewhile
takewhile
filter
collections.Counter
Counter
2
With a dictionary, max() and filter()
The Most Wanted Letter
setdefault
filter
values
items
continue
O'Reilly
list.count
Majority
bool
count
False
True
list
3
2
itertools.starmap
Majority
itertools.starmap
starmap
next
itertools
bool
5
Swapping letters towards the left
Determine the Order
partition
fromkeys
filter
dict-comp
all
1
While cycle and deque
Flatten a List
collections.deque
deque
type
collections
print
With itertools.groupby / by list comprehension
Chunk
groupby
itertools.groupby
itertools
enumerate
typing.Iterable
Ternary conditional operator
Index Power
inline-if
list
int
len
1
time.split and If statements
Time Converter (12h to 24h)
elif
split
int
str
if
sorted, dropwhile, enumerate
Sort Except Zero
dropwhile
itertools.dropwhile
next
itertools
enumerate
Incinerator
Version as dictionary
Text Editor
class
f-string
None
inline-if
append
2
With a method for dealing damage and a method for taking and returning taken damage
The Vampires
class
collections.deque
deque
property
super
collections.deque and while
Army Battles
class
collections.deque
deque
property
super
With methods for dealing damage and taking damage
The Defenders
class
collections.deque
deque
property
super
itertools.cycle and simplified State pattern
Multicolored Lamp
ABCMeta
abc.ABCMeta
abc.abstractmethod
abstractmethod
abc
2
Mine
Line truncating
Cut Sentence
strip
isalpha
while
and
len
12
1
List comprehension, ord, modulo, chr
Caesar Cipher (encryptor)
chr
ord
inline-if
join
list-comp
Rotated collections.deque with string.ascii_lowercase and re.sub
Caesar Cipher (encryptor)
string.find
collections.deque
deque
re.sub
sub
Simple and obvious
Binary Count
bin
count
int
2
Inline 'if' statements
Fizz Buzz
inline-if
int
str
Simple and sparse
Fizz Buzz
elif
and
int
str
if
1
Ice Base
`for` loop and a boolean flag
Find Quotes
continue
not
False
and
append
19
'while' loop and itertools.takewhile
Long Repeat
itertools.takewhile
takewhile
itertools
max
lambda
1
Chains as sets of circles
Count Chains
math.hypot
hypot
Tuple
typing.Tuple
f-string
re.findall
Long Repeat
rf-string
findall
re.findall
f-string
re
2
Recursion
Long Repeat
max
and
len
if
`re.findall` and `str.strip`
Find Quotes
findall
re.findall
strip
r-string
map
Simple with str.replace and eval
Reverse Roman Numerals
eval
items
replace
for
functools.reduce
The Most Numbers
functools.reduce
reduce
functools
not
lambda
While loop
Feed Pigeons
inline-if
while
Simple max and min
The Most Numbers
min
max
not
if
Searching for digits with their left (negative) parts
Reverse Roman Numerals
rf-string
finditer
re.finditer
eval
reversed
Dropbox
One-liner
Simple Hashlib
lambda
3
1
A dictionary as a function selector
Simple Hashlib
hashlib.sha1
hashlib.sha224
hashlib.sha256
hashlib.sha384
hashlib.sha512
3
PyCon TW
Any and map
House Password
islower
any
map
isupper
isdigit
Storage
Obvious loops
Skew-symmetric Matrix
False
True
range
len
for
HubSpot
re.findall
Non Empty Lines
findall
re.findall
r-string
re
int
Recursive
Restricted Sum
pop
if
Blizzard
`re.search` with pattern generation
Stressful Subject
IGNORECASE
re.IGNORECASE
endswith
re.search
search
7
With itertools.reduce
Weekend Counter
datetime.isoweekday
isoweekday
datetime.timedelta
timedelta
functools.reduce
Filtering weekends
Weekend Counter
datetime.isoweekday
isoweekday
datetime.timedelta
timedelta
as
Rock
Obvious
Sort by Removing
not
append
list
for
if
7
1
Shelter
itertools.count and for loop
Ghosts Age
itertools.count
itertools
count
or
else
Codeship
With recomputing dictionary and Fraction
Probably Dice
Fraction
fractions.Fraction
fractions
f-string
dict-comp
Hermit
while and for loops
Count Consecutive Summers
break
while
range
for
if
17
1
Watchtower
Rotation generator
Rotate Hole
yield
all
enumerate
lambda
if-comprehension