18
oldjaponec
4 16 33
1851/ 1945
Old Japonec
Last seen 1 year ago
Member for 4 years, 8 months, 26 days
Difficulty Normal
Missions (128) / Solutions (132)
Best solutions / Newest solutions
Initiation
lambda
Split Pairs
zip
lambda
list-comp
comprehension
5
lambda
Beginning Zeros
lstrip
lambda
len
12
lambda
Nearest Value
min
abs
lambda
comprehension
rstrip
End Zeros
rstrip
int
str
len
1
lambda
Correct Sentence
strip
upper
lambda
First
All the Same
Any
typing.Any
all
List
typing.List
lambda
Max Digit
map
max
lambda
list
int
lambda 2
Between Markers (simplified)
index
lambda
return i[i.index(b)::] if b in i else i
Remove All Before
index
typing.Iterable
Iterable
typing
inline-if
len(str(a))
Number Length
int
str
len
1
First
The Most Frequent
set
max
count
print
list-comp
return len(p)>6
Acceptable Password I
bool
str
len
First
First Word (simplified)
split
str
1
First
Correct Sentence
capitalize
endswith
else
str
if
lambda
All Upper I
upper
lambda
2
First
Between Markers (simplified)
join
split
str
lambda
Sum Numbers
isdigit
lambda
sum
if-comprehension
list-comp
1
return val[::-1]
Backward String
str
1
lambda
Is Even
lambda
append -> pop
Replace First
pop
append
list
len
if
1
text.split(' ')[0]
First Word (simplified)
split
str
lambda
Between Markers (simplified)
rpartition
partition
lambda
First
Count Digits
isdigit
lambda
if-comprehension
list-comp
comprehension
Home
First
Changing direction
not
print
elif
False
True
8
arithmetic series
Missing Number
sort
sum
print
list
int
First
Even the Last
sum
else
len
if
2
First
Duplicate Zeros
print
list
else
for
if
First
Between Markers
find
join
elif
split
else
First
Three Words
isalpha
bool
False
True
split
lambda
Three Words
find
isalpha
lambda
inline-if
list-comp
1
lambda 2
Three Words
find
isalpha
lambda
inline-if
join
Second
First Word
strip
replace
split
str
lambda
Even the Last
lambda
inline-if
sum
re.findall
First Word
findall
re.findall
re
lambda
First
Sun Angle
round
map
split
list
else
First
Popular Words
strip
dict
lower
join
split
1
First
Second Index
find
None
int
str
if
First
Morse Decoder
capitalize
strip
print
split
str
lambda
First Word
replace
lambda
split
1
First
Backward Each Word
join
list-comp
split
comprehension
str
First
Sort Array by Element Frequency
values
keys
get
dict
zip
First
First Word
strip
replace
split
str
2
First
Split List
list
len
First
Right to Left
replace
join
1
lambda
Right to Left
replace
lambda
join
for pawn in pawns
Pawn Brotherhood
get
dict
zip
set
in
First
Non-unique Elements
count
append
for
if
2
Electronic Station
First
Acceptable Password II
any
isdigit
bool
and
list-comp
First
Acceptable Password VI
all
any
isdigit
bool
set
1
line in lines
Find Sequence
set
False
True
list-comp
range
1
First
Ascending List
bool
set
print
sorted
False
1
hypot
Similar Triangles
math.hypot
hypot
combinations
itertools.combinations
Tuple
First
Acceptable Password V
all
any
isdigit
bool
not
for file in files
Sort by Extension
lambda
print
sorted
join
append
First
Acceptable Password IV
all
any
isdigit
bool
not
1
First
All Upper II
isupper
bool
str
First
Acceptable Password III
all
any
isdigit
bool
and
set
Verify Anagrams
replace
set
lower
count
False
Digits Multiplication
Digits Multiplication
continue
not
int
str
for
Scientific Expedition
Numpy.array.T
Nonogram Encode
numpy.array
array
numpy
as
max
2
First
Convert and Aggregate
update
dict
tuple
sum
print
First
Follow Instructions
Tuple
typing.Tuple
typing
elif
int
1
First
The Most Wanted Letter
dict-comp
sort
isalpha
lower
if-comprehension
Second
Pangram
ascii_lowercase
string.ascii_lowercase
string
all
lower
First
YAML. More Types
update
type
strip
dict
None
First
Sum by Type
type
tuple
print
list
int
1
re + while
Striped Words
re.compile
compile
r-string
upper
isalpha
return ''.join([x.capitalize() for x in name.split('_')])
Conversion into CamelCase
capitalize
join
list-comp
split
comprehension
1
First
YAML. Simple Dict
update
strip
dict
isdigit
in
return ','.join(sorted([i for i in f.split(',')if i in s.split(',')]))
Common Words
sorted
join
if-comprehension
in
list-comp
1
First
Goes Right After
index
bool
print
in
False
1
First
Time Converter (24h to 12h)
split
else
int
str
if
1
First
Caps Lock
upper
enumerate
inline-if
join
list-comp
First
Absolute Sorting
tuple
abs
sorted
while i in range(len(p)-1)
Bird Language
isalpha
while
in
range
else
2
First
Conversion from CamelCase
isupper
lower
inline-if
join
and
First
Letter Queue
List
typing.List
pop
typing
join
re and while
Striped Words
re.compile
compile
r-string
upper
isalpha
First
Pangram
ascii_lowercase
string.ascii_lowercase
string
set
lower
O'Reilly
First
Sum of Digits
inline-if
sum
print
list-comp
comprehension
19
class Lightbulb
Lightbulb Intro
datetime.now
now
class
datetime.datetime
datetime
brackets
How Deep
max
elif
append
str
for
1
class Room
Multiple Lightbulbs
datetime.now
now
class
typing.Union
Union
Second
Flatten a List
isinstance
not
append
list
else
1
First
Frequency Sorting
List
typing.List
typing
lambda
count
First
Lightbulb End Watching
datetime.now
now
class
Optional
typing.Optional
First
Time Converter (12h to 24h)
and
split
int
str
len
First
Remove All After
index
typing.Iterable
Iterable
typing
inline-if
for x in a: b+=flat_list(x)if isinstance(x,list)else[x]
Flatten a List
isinstance
inline-if
list
for
1
First
Replace Last
inline-if
list
b+=flat_list(x)if isinstance(x,list)else[x]
Flatten a List
isinstance
inline-if
list
for
1
First
Compress List
typing.Iterable
Iterable
not
typing
or
if len(set(line))==1
Xs and Os Referee
List
typing.List
set
typing
join
2
First
Majority
bool
count
False
and
True
First
Sort Except Zero
insert
typing.Iterable
Iterable
typing
count
1
First
Median
float
List
typing.List
typing
sorted
1
index power
Index Power
list
else
int
len
if
Incinerator
simple
Text Editor
class
append
vampirism=0.5
The Vampires
class
property
super
decorator
remove
or so
Text Editor
class
append
ABCMeta
Voice TV Control
ABCMeta
abc.ABCMeta
abc.abstractmethod
abstractmethod
abc
self.defense=0
The Defenders
class
property
super
decorator
remove
First
Multicolored Lamp
class
if
if not fight
Army Battles
class
property
super
decorator
remove
return u1.is_alive
The Warriors
class
property
super
decorator
while
list (connections)
Friends
class
set-comp
remove
if-comprehension
in
Mine
First
Long Pressed
bool
max
print
while
False
Second
Fizz Buzz
elif
else
int
str
if
1
First
Best Stock
for
if
Fizz Buzz
Fizz Buzz
elif
and
else
int
str
1
Ice Base
without busting
Long Repeat
re.compile
compile
r-string
re
max
1
len(max(a.findall(l)[-1]))
Long Repeat
re.compile
compile
r-string
re
max
1
s+=(d//n)*r
Roman Numerals
zip
for
while food > 0
Feed Pigeons
break
inline-if
sum
while
append
First
The Most Numbers
min
max
else
len
if
First
Roman Numerals
index
while
for
GitHub
generator
Create Intervals
set
sorted
if-comprehension
and
list-comp
calendar.weekday
The Most Frequent Weekdays
calendar.weekday
weekday
calendar
index
inline-if
long generator
Create Intervals
set
sorted
if-comprehension
and
list-comp
1
First
The End of Other
endswith
any
sorted
if-comprehension
False
any
The End of Other
endswith
any
sorted
if-comprehension
comprehension
Dropbox
First
Friendly Number
format
abs
while
and
else
I think I could reduce the amount of code
Speech Module
get
dict
zip
elif
and
First
Worth of Words
get
dict
zip
max
sum
if abs(number)>=base
Friendly Number
format
abs
not
while
else
PyCon TW
First
House Password
islower
isupper
isdigit
bool
False
Storage
numpy
Skew-symmetric Matrix
allclose
numpy.allclose
numpy.array
array
numpy
HubSpot
First
Restricted Sum
else
len
if
Clear
Restricted Sum
not
if
Blizzard
First
Stressful Subject
endswith
strip
re.search
search
r-string
Shelter
set and sorted
Seven Segment
islower
upper
isupper
set
inline-if
1
Hermit
First
Count Consecutive Summers
continue
sum
while
elif
range