19
ludek.reif
6 13 33
1971/ 2195
Luděk Reif
Last seen 1 year ago
Member for 8 years, 3 months, 20 days
Difficulty Normal
Missions (109) / Solutions (116)
Best solutions / Newest solutions
Initiation
Lambda function
Multiply (Intro)
lambda
1
Split it
First Word (simplified)
split
str
Substrings with one line if-else
Correct Sentence
upper
inline-if
str
2
The most common (Counter)
The Most Frequent
collections.Counter
Counter
collections
Simple solution
Between Markers (simplified)
index
str
Counter is your friend
All the Same
Any
typing.Any
collections.Counter
Counter
collections
2
Home
Step by step
Sun Angle
inline-if
split
comprehension
int
15
1
First
Three Words
isalpha
inline-if
False
True
list-comp
Convert to int
Pawn Brotherhood
index
set
or
sorted
in
f like format
Date and Time Converter
calendar.month_name
month_name
calendar
f-string
inline-if
find begin and end
Between Markers
find
inline-if
str
len
3
Counter and chain
Sort Array by Element Frequency
from_iterable
itertools.from_iterable
chain
itertools.chain
collections.Counter
reverse sorted with key
Bigger Price
lambda
sorted
True
list
int
Comprehension and Expect
Even the Last
IndexError
except
try
sum
list-comp
Counter is your friend
Popular Words
collections.Counter
Counter
dict-comp
dict
collections
Step by step
Morse Decoder
upper
join
append
split
comprehension
1
One line
Right to Left
replace
join
any in action
Three Words
any
isalpha
join
False
and
minimalist
Pawn Brotherhood
index
set
or
sorted
if-comprehension
3
One line
Even the Last
lambda
inline-if
sum
list-comp
comprehension
Clear vs. Speedy
Non-unique Elements
collections.Counter
Counter
collections
if-comprehension
list-comp
2
find two times
Second Index
find
None
inline-if
int
str
2
Simple solution with except
Even the Last
IndexError
except
try
for
1
replace first, replace second, strip and split it
First Word
rstrip
replace
split
str
4
Straightforward
Days Between
datetime.datetime
datetime
abs
First
Non-unique Elements
count
append
for
if
2
Electronic Station
Magic constants
Find Sequence
enumerate
abs
join
in
False
IF solution
Boolean Algebra
None
or
elif
and
else
Simple solution with except and ord
Brackets
ord
IndexError
pop
except
try
Simple one line solution
Verify Anagrams
lower
sorted
if-comprehension
list-comp
comprehension
reduce with lambda
Digits Multiplication
functools.reduce
reduce
functools
lambda
if-comprehension
Scientific Expedition
Replace 00 to 24 and test it
Time Converter (24h to 12h)
f-string
replace
inline-if
split
int
5
Random
I Love Python!
random.choice
choice
random
join
while
6
One line
Conversion from CamelCase
isupper
enumerate
lower
inline-if
join
17
Simple solution
Letter Queue
startswith
pop
join
elif
and
Commented
Cipher Map
enumerate
abs
sorted
join
if-comprehension
One line
Common Words
lambda
sorted
join
if-comprehension
in
zip it
The Hidden Word
itertools.zip_longest
zip_longest
itertools
find
enumerate
defaultdict is the right way
Call to Home
collections.defaultdict
defaultdict
values
collections
inline-if
Simple solution
Bird Language
replace
in
elif
False
and
1
defaultdict in action
The Most Wanted Letter
ascii_letters
string.ascii_letters
collections.defaultdict
defaultdict
keys
Simple solution
Pangram
ascii_lowercase
string.ascii_lowercase
string
lower
False
One line
Secret Message
isupper
join
if-comprehension
list-comp
comprehension
Alternating
Striped Words
upper
not
inline-if
sum
join
Sorted
Absolute Sorting
abs
lambda
sorted
Co
Common Words
sorted
join
if-comprehension
in
split
2
First solution
Morse Clock
bin
enumerate
replace
isdigit
join
O'Reilly
Recursion
Flatten a List
type
append
list
else
for
2
Condition and modulo
Time Converter (12h to 24h)
f-string
replace
or
and
split
Except is here
Index Power
IndexError
except
try
O(n^2)
Count Inversions
enumerate
for
if
Just solution
Xs and Os Referee
abs
or
in
elif
range
First
Median
sorted
len
if
Incinerator
@property and inner take_hit()
The Warriors
class
property
super
decorator
not
11
1
Turn it
Multicolored Lamp
class
len
2
Just solution
Friends
class
tuple
set
if-comprehension
in
S
Building Base
locals
class
format
Mine
max with key
Best Stock
max
lambda
18
Math is really cool thing
Achilles and the Tortoise
Euclidean algorithm & reduce
The Greatest Common Divisor
functools.reduce
reduce
functools
while
Clear case
Cut Sentence
rsplit
f-string
in
elif
else
More variables for better understanding
Caesar Cipher (encryptor)
string.find
ascii_lowercase
string.ascii_lowercase
string
find
Comprehension
Binary Count
bin
sum
comprehension
int
str
Just s
Fizz Buzz
elif
and
str
if
First
Moore Neighbourhood
pass
enumerate
abs
elif
and
Ice Base
One line
Morse Encoder
lower
inline-if
join
comprehension
While there is food
Feed Pigeons
while
else
if
2
Use the table
Roman Numerals
continue
sorted
True
for
if
Simple solution
Monkey Typing
lower
in
for
if
Readable
Reverse Roman Numerals
index
range
else
len
for
Simplest, but not the most optimal
Largest Rectangle in a Histogram
tuple
min
max
range
len
We need go deeper
How to Find Friends
collections.defaultdict
defaultdict
as
tuple
collections
Inner function
Roman Numerals
enumerate
elif
append
else
int
2
MIN and MAX
The Most Numbers
TypeError
min
except
try
max
Alice In Wonderland
Simple and clear
Middle Characters
else
len
if
Simple solution with enumerate
Transposed Matrix
enumerate
append
else
for
if
Check all
Long Non Repeat
enumerate
break
range
else
len
GitHub
Clear solution
The Most Frequent Weekdays
datetime.datetime
datetime
sorted
list-comp
comprehension
17
Reverse
The End of Other
re.search
search
re
sorted
False
Straightforward
Solution for Anything
class
object
True
Still set
Create Intervals
min
max
not
in
elif
Dropbox
Crazy solution...
Three Points Circle
locals
class
math.sqrt
sqrt
format
11
Comprehension
Worth of Words
dict-comp
max
lambda
sum
comprehension
13
Simple solution
Speech Module
pass
join
elif
append
else
Clear and speedy solution
The Longest Palindromic
enumerate
break
while
and
else
With Counter
Numbers Factory
collections.Counter
Counter
collections
break
not
Hello math, my old friend
Humpty Dumpty Form
math.atanh
atanh
math.asin
asin
math.pi
0**2
The Best Number Ever
PyCon TW
Simple solution
Digit Stack
pop
elif
append
split
int
Everything's TRUE
House Password
islower
all
isupper
isdigit
elif
8
alterisk
Simple Areas
math.pi
pi
math.sqrt
sqrt
round
Storage
First solution
Moria Doors
punctuation
string.punctuation
itemgetter
operator.itemgetter
collections.defaultdict
Column to defautdict
Weak Point
collections.defaultdict
defaultdict
as
items
collections
HubSpot
Short solution
The Hamming Distance
bin
lambda
count
Sim
Number Base
ValueError
except
try
int
Split it and join
Restricted Sum
eval
lambda
join
split
str
Recursion
Restricted Sum
not
lambda
inline-if
len
Blizzard
In order
Stressful Subject
ascii_lowercase
string.ascii_lowercase
strip
string
isupper
While with timedelta
Weekend Counter
datetime.timedelta
timedelta
datetime
while
in
Simple solution
Min and Max
TypeError
is
get
None
except
Inner function
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
Shelter
There and back
The Nearest Square Number
math.sqrt
sqrt
round
math
16
Ok, it's scary...
Ghosts Age
fsum
math.fsum
tuple
math
while
Codeship
Simple solution
Pearls in the Box
round
count
and
append
range
Hermit
Divide the number
Count Consecutive Summers
break
range
for
if
Watchtower
Predict the key
Vigenere Cipher
ascii_uppercase
string.ascii_uppercase
string
enumerate
index
No sense for humor :)
Funny Addition
lambda
sum
break and continue
Rotate Hole
continue
break
not
False
append
Escher
Minus is the key
The Stone Wall
collections.defaultdict
defaultdict
collections
enumerate
max
Find the borders
Ground for the House
is
find
enumerate
min
None
1
divmod and index
The Secret Room
divmod
f-string
index
lambda
sorted
Comprehension
The Ship Teams
sorted
if-comprehension
list-comp
comprehension
Use math they said
Wild Dogs
ZeroDivisionError
combinations
itertools.combinations
collections.defaultdict
defaultdict
How far
Compass, Map and Spyglass
all
enumerate
None
abs
max