21
gleb10101010101
5 21 44
2585/ 2695
Last seen 3 hours ago
Member for 9 months, 12 days
Difficulty Easy
Medium Python programmer. I like clear code and one-liners.

Missions (214) / Solutions (155)
Best solutions / Newest solutions
Strings and Integers
Oneliner
Count Vowels
lower
count
sum
print
comprehension
1
reversed() and replace()
Reverse Integer
reversed
replace
inline-if
print
join
1
Oneliner
Integer Sign Determination
print
int
str
1
2
Oneliner
Leap Year Checking
bool
not
inline-if
print
False
1
itertools.permutations
All Permutations
collections.abc.Iterable
itertools.permutations
permutations
as
itertools
1
1
Oneliner
Perfect Number Checking
bool
not
sum
print
if-comprehension
1
Twoliner
Quadratic Equation Roots
collections.abc.Iterable
math.sqrt
sqrt
collections
math
1
Oneliner
Count Divisibles in Range (simplified)
inline-if
sum
print
list-comp
range
1
Can you solve this in other way?!
Find Remainder
print
int
2
The Great Oneliner
Longest Common Prefix
rindex
all
min
set
inline-if
2
1
Use regex
Count Substring Occurrences
findall
re.findall
re
lower
print
2
num in list?
Armstrong Number Checking
bool
print
in
False
True
2
Oneliner
The Longest Word
max
count
inline-if
print
if-comprehension
3
Twoliner (try-except)
Convert Date
reversed
datetime.datetime
datetime
except
try
3
Oneliner
Fuzzy String Matching
min
bool
count
print
False
3
First
Excel Column Number
string.index
ascii_uppercase
string.ascii_uppercase
reversed
as
6
Oneliner
Excel Column Number
string.index
ascii_uppercase
string.ascii_uppercase
reversed
as
7
Clearest possible solution
Maximum Among Three
max
print
int
8
1
Range
Sum of Integers
sum
print
range
int
9
First
Goes Right After (simplified)
all
find
bool
print
False
10
NothingSpecial
Rectangle Perimeter
print
int
11
Use "Math" module!
Number With Exclamation
math.factorial
factorial
as
math
print
12
Use replace()
Replace All Occurrences
replace
print
str
12
1
First
Just Fizz!
inline-if
print
int
str
12
5th — yield
Multiply (Intro)
yield
sum
print
range
list
13
TheVerySmallSolution
Convert To Title Case
title
print
str
18
First
Is Even
bool
print
False
True
int
2
What is this?!
Multiply (Intro)
finally
raise
ValueError
pass
except
lambda
Multiply (Intro)
lambda
print
Oneliner
All Upper I
ascii_uppercase
string.ascii_uppercase
as
string
all
Oneliner
Cut Sentence
shorten
textwrap.shorten
textwrap
inline-if
print
First
First Word (simplified)
print
split
str
AbSuRd
Multiply (Intro)
array.array
itertools.zip_longest
zip_longest
array
collections.defaultdict
1
First
Fizz Buzz
inline-if
print
int
str
1
First
Multiply (Intro)
inline-if
print
and
int
2
4th f''
Multiply (Intro)
f-string
print
int
Oneliner
Beginning Zeros
lstrip
print
int
str
len
Oneliner
Max Digit
max
print
list-comp
list
comprehension
reduce+mul
Digits Multiplication
mul
operator.mul
operator
functools.reduce
reduce
__import__ + map
Digits Multiplication
map
replace
print
int
str
First
Backward String
print
str
Oneliner
The Most Wanted Letter
ascii_lowercase
string.ascii_lowercase
as
dict-comp
string
len-str
Number Length
print
int
str
len
Classic
Bird Language
translate
print
while
in
elif
List but not the least
ReadHints!
Stock Profit
max
print
range
list
int
Oneliner
Easy Unpack
tuple
print
list-comp
comprehension
Oneliner
Frequency Sorting
collections.abc.Iterable
collections
Iterable
lambda
count
Oneliner
The Most Frequent
dict-comp
items
set
lambda
count
First
Missing Number
zip
index
max
print
sorted
Classic
Backward Each Word
print
join
split
comprehension
str
Oneliner
Remove All After
collections.abc.Iterable
collections
index
Iterable
inline-if
Unpractical but beautiful
Chunk
collections.abc.Iterable
pass
collections
IndexError
Iterable
VerySimple
Compress List
collections.abc.Iterable
collections
Iterable
print
append
First
Words Order
all
index
bool
set
not
First
Replace First
collections.abc.Iterable
collections
pop
Iterable
print
1
First
Absolute Sorting
abs
print
sorted
list
1
Look up in the Dict()
First
Ordinary Cardinals
continue
count
print
list-comp
range
16
Oneliner
Move Zeros
typing.Iterable
Iterable
typing
count
print
18
One String Solution
YAML. Simple Dict
all
dict
tuple
isdigit
inline-if
Recursion
How Deep
isinstance
tuple
max
inline-if
print
Simple
Switch Keys to Values
values
add
dict
items
set
First
Count Digits
count
print
in
True
list-comp
2
Classic
Golden Pyramid
max
print
range
list
comprehension
Oneliner
Best Stock
float
dict
items
lambda
print
Oneliner
Popular Words
dict-comp
dict
replace
lower
count
Oneliner with operator.itemgetter()
Bigger Price
itemgetter
operator.itemgetter
operator
dict
print
1
"set" and "Counter" are equal...
Verify Anagrams
collections.Counter
Counter
collections
bool
set
match-case
Boolean Algebra
case
match-case
bool
not
or
Second
YAML. Simple Dict
all
dict
tuple
isdigit
inline-if
First
The Flat Dictionary
isinstance
dict
items
pop
not
Strings Theory
A bunch of one-liners
Revorse the vewels
keys
dict
upper
zip
isupper
1
1
join and enumerate
Matrix-2-String
upper
map
enumerate
inline-if
join
3
Mess
String-2-Matrix
values
dict-comp
islower
tuple
lower
3
Automatic replace
Adjacent Letters
ascii_lowercase
string.ascii_lowercase
as
string
any
6
One String Solution
Is String a Number? (Part II)
all
any
isdigit
bool
count
7
Oneliner
Long Pressed
fullmatch
re.fullmatch
re.sub
sub
r-string
9
Twoliner
One Switch Strings
zip
bool
or
print
if-comprehension
9
Classic
Text Formatting
fill
textwrap.fill
methodcaller
operator.methodcaller
textwrap.wrap
10
1
Oneliner
All Upper II
ascii_uppercase
string.ascii_uppercase
as
strip
string
12
Brute force...
Champernowne Word
print
while
int
str
len
13
Oneliner
Long Repeat
findall
re.findall
r-string
re
inline-if
1
First
Calculator-I
digits
string.digits
eval
string
continue
First
Second Index
find
None
count
inline-if
print
1
Classic
Sun Angle
typing.Union
Union
float
typing
inline-if
1
First
The Nearest Square Number
math.sqrt
sqrt
round
math
print
1
Oneliner
Common Words
set
print
sorted
join
split
Oneliner
House Password
ascii_letters
string.ascii_letters
string
any
upper
match + pop & append
Letter Queue
case
match-case
pass
List
typing.List
List, list and list again
First
Beat The Previous
continue
print
and
append
list
5
Oneliner
Not in Order
zip
count
print
sorted
True
6
Absolutely Unclear
Combining Celebrity Names
rstrip
enumerate
break
print
in
20
2
Classic
Median of Three
typing.Iterable
Iterable
typing
inline-if
print
Oneliner
Sum by Type
type
tuple
sum
print
join
First
Replace with Biggest
enumerate
typing.Iterable
Iterable
max
typing
SomethingStrange
Integer Palindrome
divmod
isinstance
bool
inline-if
print
dict + for
When "k" is Enough!
Any
typing.Any
dict-comp
typing.Iterable
Iterable
Slices
Split List
math.ceil
ceil
Any
typing.Any
math
dict-comp and filter
Convert and Aggregate
filter
dict-comp
dict
items
tuple
Three Lines
Cipher Map
List
typing.List
zip
enumerate
typing
First
Replace Last
typing.Iterable
Iterable
typing
inline-if
print
First
Split Pairs
typing.Iterable
Iterable
not
typing
print
First
Determine the Order
itertools.product
product
values
items
itertools
Oneliner
Flatten a List
collections.abc.Iterable
isinstance
collections
Iterable
not
Oneliner
Sort Array by Element Frequency
itertools.repeat
repeat
from_iterable
itertools.from_iterable
chain
Different kind of sets
Twoliner
Shorter Set
set-comp
min
set
max
print
4
Simple
Expand Intervals
typing.Iterable
Iterable
typing
append
range
Classic
Nearest Value
min
None
abs
set
or
Oneliner
The End of Other
endswith
any
or
comprehension
Mine
Incorrect Solution.
Checking Perfect Power
random.choice
choice
random
bool
print
3
1
Code-golf!
Funny Addition
lambda
sum
1
Ice Base
One-liner
Count And Say
lambda
join
list-comp
list
comprehension
1
Oneliner
Count Divisibles in Range
print
int
3
Twoliner
Weak Point
index
min
sum
list-comp
range
Random is the best!
The Best Number Ever
random.random
random
1
Oneliner
Caesar Cipher (encryptor)
string.index
ascii_lowercase
string.ascii_lowercase
as
string
math.gcd()
The Greatest Common Divisor
math.gcd
gcd
math
int
First
Disposable Teleports
remove
continue
pop
not
or
First
Similar Triangles
Tuple
typing.Tuple
math.sqrt
sqrt
List
First
The Hidden Word
find
zip
enumerate
lower
print
First
Digit Stack
pop
elif
append
else
int
First
The Most Numbers
min
max
inline-if
GitHub
Oneliner
Secret Message
isupper
join
if-comprehension
list-comp
comprehension
Oneliner
Monkey Typing
set
lower
sum
in
list-comp
enum.Enum
I Love Python!
Enum
enum.Enum
enum
class
sum + zip
The Hamming Distance
bin
zip
abs
sum
print
eval + s u m
Restricted Sum
eval
str
First
Binary Count
bin
count
int
str
try-except
Number Base
ValueError
except
try
int
str
First
Roman Numerals
range
int
len
for
Everything is Object
Oneliners
Every Person is Unique
class
f-string
replace
inline-if
join
11
Simplest
Voice TV Control
class
type
inline-if
in
int
Simplest
3 Chefs
class
super
str
2
Simplest
Army Units
class
pass
join
elif
if
First
The Healers
class
isinstance
pop
None
max
First
The Lancers
class
isinstance
pop
None
max
First
The Vampires
class
hasattr
pop
break
not
Shortly
The Defenders
class
pop
break
not
while
Second
The Warriors
class
all
while
True
if
First
Army Battles
class
super
pop
break
while
First
The Warriors
class
all
while
True
if
Master of the Time Stone
Code-golf
Days Between
abs
lambda
12
1
Oneliner
Time Converter (24h to 12h)
inline-if
print
int
str
Blizzard
Oneliner
Worth of Words
dict-comp
items
lambda
sum
sorted
Twoliner
Word Pattern
ascii_letters
string.ascii_letters
as
string
all
First
Robot Sort
f-string
continue
print
sorted
join
Rock
Oneliner
Sum Consecutives
groupby
itertools.groupby
itertools
sum
list-comp
15
Oneliner
Caesar Cipher (decryptor)
string.find
ascii_lowercase
string.ascii_lowercase
as
string
First
Sort by Removing
in
append
list
len
for
First
Rectangles Union
Tuple
typing.Tuple
add
List
typing.List
Escher
Oneliner
The Ship Teams
items
or
sorted
if-comprehension
list-comp
Not On Map
Something_strange
Length of the String
sum
print
join
list-comp
comprehension
10
Simple five-liner
Most Wanted Letter
ascii_letters
string.ascii_letters
dict-comp
string
items