22
Selindian
7 26 43 Leader of the month
2572/ 2945
Last seen 10 hours ago
Member for 2 years, 3 months, 1 day
Difficulty Easy
I'm here to learn / improve my Python skills and help other people if possible.

Missions (161) / Solutions (151)
Best solutions / Newest solutions
Strings and Integers
Using string.capwords - Explained
Conversion into CamelCase
capwords
string.capwords
string
replace
str
8
Should be self-explanatory
Just Fizz!
inline-if
print
int
str
1
Not the shortest, but explained.
Excel Column Number
ord
zip
print
range
int
1
Should be self-explanatory
Goes Right After (simplified)
bool
print
in
False
True
Explained
Goes Right After
find
bool
str
4
Nothing special
Middle Characters
else
int
len
if
Explained
Cut Sentence
count
join
split
else
int
Beginner's Solution
The Most Wanted Letter
chr
get
max
lower
range
1
Should be self-explanatory
Bird Language
translate
chr
print
while
if-comprehension
1
Beginner's solution in one line
All Upper I
upper
bool
str
Using Modulo
Is Even
bool
int
2
Explained
Conversion into CamelCase
upper
continue
elif
range
else
Should be easy to understand
Conversion from CamelCase
isupper
lower
range
else
str
1
Beginner's solution
Sum Numbers
isdigit
split
int
str
for
Beginner's solution
Digits Multiplication
int
str
for
if
1
Should be self-explanatory
First Word
strip
replace
split
str
Simple and Explained
Beginning Zeros
lstrip
int
str
len
1
Should be easy to understand
Three Words
isalpha
break
bool
split
else
1
List but not the least
Explained
Stock Profit
reversed
max
print
list
int
1
Should be easy to understand
Sort by Extension
DataFrame
pandas.DataFrame
pandas
rfind
as
5
Explained
Reverse Every Ascending
extend
range
list
len
for
6
2
Explained - Kept simple
Changing direction
print
elif
append
range
list
9
2
Short and Explained
Compress List
yield
typing.Iterable
Iterable
typing
list
2
Explained - Using Pairwise and only one loop
Missing Number
itertools.pairwise
pairwise
add
itertools
sort
Explaination of a Beginner
The Most Frequent
set
max
count
list
str
Just a loop and extend / append
Duplicate Zeros
extend
print
append
list
else
Beginner's solution
Non Empty Lines
strip
if-comprehension
list-comp
split
comprehension
Explained
Sort Except Zero
insert
sort
enumerate
typing.Iterable
Iterable
2
Using Array - Explained
Remove All After
array.array
array
typing.Iterable
Iterable
except
1
Beginner's solution
Words Order
all
index
bool
except
try
1
Not the shortest but explained
Zigzag Array
List
typing.List
typing
append
range
count() and islice() from itertools explained
Zigzag Array
islice
itertools.islice
itertools.count
itertools
List
Should be self-explanatory
Replace First
pop
typing.Iterable
Iterable
typing
append
3
Easy one - Commented
Follow Instructions
Tuple
typing.Tuple
typing
count
int
Should be easy to understand
Right to Left
rstrip
tuple
replace
str
for
Should be easy to understand
Chunk
yield
typing.Iterable
Iterable
typing
range
1
Short with explanation
Frequency Sorting
List
typing.List
typing
lambda
count
Sorting with key
Absolute Sorting
abs
sorted
list
Using lambda for that small piece of code
Easy Unpack
lambda
print
1
Not a one-liner. Commented.
Ascending List
typing.Iterable
Iterable
bool
typing
False
1
Beginner's solution
Remove All Before
index
typing.Iterable
Iterable
typing
list
1
sum + count instead of len - Just because ;-)
Majority
lambda
count
sum
False
Beginner's solution
Backward Each Word
join
list-comp
split
comprehension
str
Nothing special here
Index Power
list
else
int
len
if
2
Using Set - With Comments
All the Same
Any
typing.Any
List
typing.List
bool
2
Beginner's solution
Median
statistics.median
statistics
median
float
List
2
Using the hint list.count()
Non-unique Elements
count
append
list
for
if
Look up in the Dict()
Using eval and suppress - Explained
Aggregate by Operation
contextlib.suppress
suppress
contextlib
with
ZeroDivisionError
14
1
Not the shortest, but with explanations
Move Zeros
extend
remove
count
print
while
1
Beginner's solution - Explained
What Is Wrong With This Family?
get
items
None
bool
sum
Without defaultdict - Explained
Switch Keys to Values
keys
add
dict
items
print
Should be easy to understand
Boolean Algebra
elif
if
1
Explained
Golden Pyramid
tuple
map
max
range
list
Difference between isdigit(), isnumeric() and isdecimal()
Count Digits
isdecimal
isnumeric
isdigit
sum
comprehension
Used itemgetter to avoid lambda
Bigger Price
itemgetter
operator.itemgetter
operator
sorted
True
1
Explained - Using Collections and Re
Popular Words
rf-string
IGNORECASE
re.IGNORECASE
OrderedDict
collections.OrderedDict
2
Short and Explained
Verify Anagrams
replace
lower
sorted
2
Beginner's solution
Pawn Brotherhood
chr
ord
set
in
int
Strings Theory
Just a loop, sum and map - Explained
Sum of Digits
map
sum
print
while
int
11
Using regex.finditer and translate - Should be easy to understand
Currency Style
translate
re.compile
compile
r-string
re
18
3
Not the shortest, but explained.
Reveal the Number
ValueError
float
index
None
replace
19
Beginner's solution
The Nearest Square Number
math.sqrt
sqrt
round
math
20
Simple Try Except
Is String a Number? (Part II)
float
bool
except
try
print
20
No need to convert
Correct Capital
islower
isupper
bool
or
print
2
Should be easy to understand
Acceptable Password VI
any
map
isdigit
bool
set
1
Use String Method
Is String a Number?
isdigit
print
False
True
str
Used an Iterator - Explained
Adjacent Letters
iter
print
elif
else
str
Explained
Acceptable Password I
bool
str
len
1
Regex Rookie
Stressful Subject
re.sub
sub
endswith
re.search
search
Explained
The Longest Palindromic
next
reversed
if-comprehension
append
range
2
Not the shortest solution, but explained.
Acceptable Password IV
all
any
map
isdigit
bool
2
Explained
Double Substring
find
while
else
len
if
Explained
Morse Encoder
rstrip
lower
split
str
for
2
Didn't know better before seeing other solutions
Currency Style
re.compile
compile
r-string
re
replace
Not a one-liner. Commented.
Surjection Strings
zip
set
len
1
Should be easy to understand
Speech Module
join
append
list
int
str
2
Beginner's solution
Acceptable Password V
re.search
search
all
any
map
Explained
All Upper II
isupper
bool
str
1
Explained
Common Words
intersection
set
sorted
join
split
Should be self-explanatory
Second Index
index
None
except
try
int
Should be self-explanatory
Pangram
ascii_lowercase
string.ascii_lowercase
as
string
lower
1
Explained
Letter Queue
startswith
List
typing.List
pop
typing
4
Should be easy to understand
Morse Decoder
rstrip
capitalize
split
str
for
No idea how to do better
Between Markers
rfind
find
else
str
len
Should be easy to understand
Long Repeat
inline-if
int
str
for
if
Sets and Difference - Explained and not too long
Striped Words
difference
ascii_letters
string.ascii_letters
punctuation
string.punctuation
Should be easy to understand
Sun Angle
typing.Union
Union
typing
or
and
Should be easy to understand
Brackets
re.sub
sub
pop
re
elif
2
Beginner's solution
House Password
findall
re.findall
re
bool
and
3
List, list and list again
Second solution - Using setdefault
Convert and Aggregate
setdefault
tuple
print
list
else
2
2
For changed mission - Explained
Integer Palindrome
divmod
insert
bool
print
while
7
4
Explained
Convert and Aggregate
keys
tuple
continue
print
elif
9
2
Should be easy to understand
Colorful Disks
Ellipsis
reversed
tuple
or
print
Explained - Using list as "fifo"
Median of Three
yield
pop
typing.Iterable
Iterable
typing
2
Clear, short and explained
Replace with Biggest
yield
ValueError
enumerate
typing.Iterable
Iterable
Permutations - Explained
Most Efficient Cutting
itertools.permutations
permutations
itertools
min
comprehension
Explained
Count Inversions
tuple
enumerate
if-comprehension
list-comp
comprehension
1
Explained
Replace Last
extend
list
else
len
if
1
Should be easy to understand
Xs and Os Referee
List
typing.List
zip
typing
str
3
Beginner's solution
Sum by Type
Tuple
typing.Tuple
type
typing
list
New for me
Determine the Order
class
collections.deque
deque
collections.defaultdict
defaultdict
Not a one-liner - Explained
Split List
math.ceil
ceil
math
list
len
1
Should be self-explanatory
Split Pairs
append
range
list
else
len
1
Two Variants - Without and with list compression
Sort Array by Element Frequency
collections.Counter
Counter
collections
append
list
1
Recursion - Commented
Flatten a List
isinstance
extend
append
list
else
1
Using itertools.combinations
Loading Cargo
combinations
itertools.combinations
itertools
min
abs
Different kind of sets
Not a one-liner. Commented.
Shorter Set
remove
min
set
max
print
11
Beginner's solution
Nearest Value
abs
set
elif
int
for
2
Simple and Explained
Create Intervals
pop
set
sorted
append
list
Mine
Simple and Explained
Common Tail
pop
None
break
print
while
20
Using Enumeration - Explained
Reverse Roman Numerals
Enum
enum.Enum
enum
class
elif
2
Slightly creative - Easy and explained
Funny Addition
chain
itertools.chain
itertools
sum
True
Ice Base
Short, but not a one-liner
Caesar Cipher (encryptor)
translate
ascii_lowercase
string.ascii_lowercase
as
string
2
Using Itertools - Explained
Feed Pigeons
itertools.count
itertools
max
count
else
2
Should be self-explanatory
The Greatest Common Divisor
math.gcd
gcd
functools.reduce
reduce
functools
Explained
The Hidden Word
itertools.zip_longest
zip_longest
ValueError
pass
itertools
Without reduce - 3.9 adds support for an arbitrary number of arguments
The Greatest Common Divisor
math.gcd
gcd
math
int
Should be easy to understand
The Most Numbers
min
max
not
else
if
2
Set default for max/min instead of using if
The Most Numbers
min
max
The Game is Worth it!
Simple and Explained
The Final Stone
heapify
heapq.heapify
heappush
heapq.heappush
heappop
7
GitHub
Should be easy to understand - with comments
Roman Numerals
divmod
items
for
1
Filter and Lambda used
Secret Message
filter
isupper
lambda
join
str
2
Short and Explained
Moore Neighbourhood
min
max
range
list
int
1
Explained with Alternative Return
Binary Count
bin
count
sum
comprehension
int
2
Nothing special but with some comments
The Angles of a Triangle
Exception
raise
math.degrees
degrees
math.acos
Dropbox
Explained - Used Numpy
Determinant
numpy.linalg
linalg
numpy.array
array
numpy
8
2
Explained
How Much Gold
keys
else
for
if
Second to use Fraction
How Much Gold
Fraction
fractions.Fraction
fractions
keys
else
1
Formula and its source
Achilles and the Tortoise
1
Everything is Object
Abstract - Comments may not be entirely correct
Geometry Figures
ABC
abc.ABC
abc.abstractmethod
abstractmethod
abc
Solution of a Beginner - Hopefully explained correctly
The Warriors
class
property
super
decorator
bool
Master of the Time Stone
Not the shortest but explained
Lightbulb Start Watching
Optional
typing.Optional
datetime.datetime
datetime
List
As multiline and one-liner - Explained
Lightbulb Intro
datetime.datetime
datetime
List
typing.List
zip
2
Should be self-explanatory
Date and Time Converter
format
inline-if
split
int
str
Didn't know better before seeing other solutions
Group Equal consecutive
pop
append
else
for
if
1
Beginner's solution
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
inline-if
2
Should be easy to understand
Time Converter (12h to 24h)
format
replace
elif
split
int
Short and Explained
Days Between
date
datetime.date
tuple
datetime
abs
Should be easy to understand
Time Converter (24h to 12h)
f-string
map
elif
split
int
Blizzard
Not the shortest, but explained.
Simple Hashlib
AttributeError
getattr
hashlib
update
None
2
Second - Using hashlib.new() instead of getattr()
Simple Hashlib
bytes
AttributeError
hashlib.new
new
hashlib
Convert and Compare - Explained
Word Pattern
isdigit
inline-if
join
list-comp
comprehension
Rock
Should be self-explanatory
Sort by Removing
not
or
append
list
for
Using itertools.accumulate - Explained
Sort by Removing
itertools.accumulate
accumulate
itertools
zip
max
Not the shortest but explained
Find Quotes
IndexError
enumerate
pop
break
except
2
Solution of a Rookie
Caesar Cipher (decryptor)
re.sub
sub
chr
r-string
ord
Codeship
Don't know better
Ugly Numbers
min
while
append
int
len
8
Hermit
Enumerate gives the index for LETTERS
Ryerson Letter Grade
next
enumerate
print
if-comprehension
list-comp
Not On Map
Using len()
Length of the String
print
int
str
len
9