30
Pactp
13 26 41 Leader of the month
4728/ 5195
Pactp
Last seen 2 months ago
Member for 1 year, 2 months, 10 days
Difficulty Easy
Missions (328) / Solutions (299)
Best solutions / Newest solutions
Strings and Integers
First
Convert Date
datetime.datetime
datetime
except
try
str
1
1
First
Armstrong Number Checking
map
lambda
sum
int
str
1
1
First
Leap Year Checking
bool
or
and
int
1
1
First
Conversion into CamelCase
capitalize
re.sub
sub
r-string
upper
2
First
Longest Common Prefix
min
break
set
while
list
2
First
Quadratic Equation Roots
collections.abc.Iterable
collections
Iterable
int
str
2
First
Integer Sign Determination
inline-if
int
str
3
1
First
Count Divisibles in Range (simplified)
print
int
3
First
Maximum Among Three
max
lambda
4
First
The Longest Word
split
str
len
for
if
4
First
Longest Substring of Unique Characters
find
while
in
elif
int
4
First
Count Substring Occurrences
lower
sum
range
comprehension
int
4
First
All Permutations
collections.abc.Iterable
itertools.permutations
permutations
itertools
collections
5
First
Replace All Occurrences
replace
str
5
First
Reverse Integer
inline-if
int
str
7
1
First
Rectangle Perimeter
int
10
First
Middle Characters
divmod
inline-if
str
len
11
2
First
Count Vowels
lower
lambda
if-comprehension
in
list-comp
11
1
First
Sum of Integers
lambda
11
First
Sum Numbers
isdigit
sum
if-comprehension
split
comprehension
13
First
Fuzzy String Matching
zip
bool
sum
comprehension
int
14
1
First
The Most Wanted Letter
collections.Counter
Counter
values
collections
isalpha
15
1
First
All Upper I
islower
all
isupper
isalpha
bool
16
First
Perfect Number Checking
bool
while
int
if
16
First
Goes Right After (simplified)
find
bool
or
False
str
19
First
Find Remainder
int
First
Number With Exclamation
2
First
Excel Column Number
upper
ord
int
str
for
First
First Word
strip
split
str
First
Max Digit
max
lambda
comprehension
int
str
First
Cut Sentence
tuple
sum
print
join
while
First
Goes Right After
rf-string
match
re.match
f-string
re
First
Conversion from CamelCase
as
findall
re.findall
re
lower
First
Three Words
isalpha
bool
False
True
split
First
Digits Multiplication
functools.reduce
reduce
functools
lambda
inline-if
First
Between Markers (simplified)
find
in
and
str
len
First
End Zeros
divmod
while
True
int
if
First
Bird Language
translate
print
while
in
elif
First
Correct Sentence
upper
str
List but not the least
First
Follow Instructions
tuple
count
list
int
str
1
1
First
Duplicate Zeros
collections.abc.Iterable
yield
collections
Iterable
list
2
First
Non Empty Lines
splitlines
strip
sum
if-comprehension
comprehension
2
First
Compress List
collections.abc.Iterable
yield
collections
None
Iterable
First
All the Same
Any
typing.Any
all
List
typing.List
First
Zigzag Array
append
list-comp
range
list
comprehension
3
First
Changing direction
zip
continue
inline-if
elif
list
First
Chunk
collections.abc.Iterable
collections
Iterable
list-comp
range
First
Missing Number
sort
min
range
list
int
First
Reverse Every Ascending
collections.abc.Iterable
collections
None
Iterable
inline-if
First
Frequency Sorting
collections.abc.Iterable
collections.Counter
Counter
collections
sort
First
Ascending List
pass
zip
continue
break
bool
First
Sort by Extension
rfind
sort
inline-if
print
append
First
Remove All After
finally
collections.abc.Iterable
ValueError
collections
index
First
Words Order
ValueError
index
bool
except
try
First
Even the Last
inline-if
sum
print
list
comprehension
First
Backward Each Word
inline-if
join
while
append
str
First
Replace First
collections.abc.Iterable
collections
Iterable
list
len
First
The Most Frequent
collections.Counter
Counter
collections
list
str
First
Remove All Before
collections.abc.Iterable
copy
collections
pop
Iterable
First
Sort Except Zero
collections.abc.Iterable
collections
sort
pop
Iterable
First
Easy Unpack
tuple
First
Index Power
IndexError
except
try
print
list
First
Absolute Sorting
math.pow
pow
math
lambda
sorted
First
Right to Left
tuple
replace
join
comprehension
str
First
Non-unique Elements
collections.abc.Iterable
collections.Counter
Counter
collections
Iterable
Look up in the Dict()
First
Ordinary Cardinals
map
lambda
sorted
join
True
1
First
Count Digits
isdigit
lambda
sum
comprehension
7
1
First
The Cheapest Flight
update
dict
items
while
in
First
YAML. More Types
splitlines
isnumeric
strip
dict
None
First
The Flat Dictionary
isinstance
extend
dict
items
print
First
YAML. Simple Dict
isnumeric
strip
dict
find
inline-if
First
What Is Wrong With This Family?
set-comp
bool
set
not
or
Second
Pawn Brotherhood
index
set
or
sum
if-comprehension
First
Golden Pyramid
enumerate
max
list-comp
list
comprehension
First
Popular Words
collections.Counter
Counter
dict-comp
dict
collections
First
Best Stock
itemgetter
operator.itemgetter
operator
float
dict
First
Pawn Brotherhood
set-comp
index
set
if-comprehension
comprehension
Strings Theory
First
Acceptable Password IV
isdigit
lambda
or
sum
print
1
5
First
Fibonacci Poem
next
yield
extend
replace
join
1
1
First
Calculator-III
re.sub
sub
re.search
search
r-string
1
First
Staircase
break
max
or
while
int
1
First
The Hollow Diamond
bool
or
inline-if
range
int
2
First
Calculator-II
rfind
eval
rstrip
re.sub
sub
2
First
Correct Capital
match
re.match
r-string
re
None
4
1
First
Huffman Encode
reverse
collections.deque
deque
insert
collections.Counter
5
First
Calculator-I
re.search
search
r-string
continue
re
5
First
Reveal the Number
float
find
None
inline-if
join
11
First
Chemical Analysis
type
isupper
isalpha
pop
isdigit
14
First
Long Pressed
groupby
itertools.groupby
itertools
bool
False
14
First
Is String a Number? (Part II)
fullmatch
re.fullmatch
r-string
re
None
15
First
One Switch Strings
bool
if-comprehension
False
and
True
20
Recursion
Count Morse
Ellipsis
startswith
enumerate
in
elif
First
Morse Encoder
lower
join
split
comprehension
str
First
Morse Decoder
capitalize
join
split
comprehension
str
First
Text Formatting
case
match-case
f-string
pass
enumerate
First
Sun Angle
datetime.fromisoformat
fromisoformat
datetime.time
time
typing.Union
First
Acceptable Password V
find
isdigit
lower
lambda
sum
First
Remove Brackets
enumerate
index
in
str
len
First
The Nearest Square Number
math.floor
floor
math.ceil
ceil
math.sqrt
First
Is String a Number?
isdigit
bool
print
False
True
First
Double Substring
in
range
int
str
len
First
Caps Lock
swapcase
islower
isalpha
not
inline-if
First
Acceptable Password VI
isdigit
bool
set
not
lower
First
Long Non Repeat
min
set
range
str
len
First
Acceptable Password III
all
any
isdigit
not
lambda
First
Friendly Number
KeyError
dict
round
abs
break
First
Surjection Strings
dict
zip
bool
elif
False
First
All Upper II
class
islower
all
any
isupper
1
First
Second Index
find
None
else
int
if
1
First
Long Repeat
pass
map
max
while
append
First
Between Markers
find
else
str
len
if
First
Letter Queue
List
typing.List
typing
else
str
First
Pangram
isalpha
bool
set
lower
if-comprehension
First
Brackets
index
bool
in
elif
False
First
Striped Words
all
upper
zip
isalpha
replace
First
Common Words
set
sorted
join
split
list
First
Speech Module
strip
inline-if
print
int
str
First
House Password
islower
any
isupper
isdigit
bool
List, list and list again
First
Toothpicks
bin
else
int
len
if
1
First
Matrix "Hatching"
typing.Iterable
Iterable
typing
if-comprehension
and
1
First
Beat The Previous
while
append
list
int
str
1
First
List Beautify
zip
map
max
join
list-comp
2
First
Color Map
set-comp
ValueError
pass
any
map
3
First
Ulam–Warburton Automaton
bin
count
sum
range
comprehension
3
First
Ulam-Warburton Automaton Hex
abs
sum
list-comp
range
comprehension
3
First
Replace Last
lambda
inline-if
7
1
First
Sort Sorted Groups
chain
itertools.chain
itertools
sort
None
First
Most Efficient Cutting
remove
sort
min
set
not
First
Replace with Biggest
yield
typing.Iterable
Iterable
max
typing
First
Not in Order
zip
sum
sorted
list
comprehension
First
When "k" is Enough!
collections.defaultdict
defaultdict
Any
typing.Any
yield
First
Count Inversions
enumerate
sum
comprehension
First
Sum by Type
isinstance
tuple
sum
join
if-comprehension
1
First
Determine the Order
collections.fromkeys
popitem
OrderedDict
collections.OrderedDict
fromkeys
First
Flatten a List
collections.abc.Iterable
yield
isinstance
collections
Iterable
First
Loading Cargo
yield
zip
sort
abs
break
First
Xs and Os Referee
case
match-case
set-comp
pop
lambda
Different kind of sets
First
Hexagonal Islands
difference
union
set-comp
find
pop
6
First
Power Plants
Dict
typing.Dict
typing.Set
Set
update
11
First
Boundary Blocks
set-comp
pop
set
or
while
12
First
Square Board
case
match-case
Tuple
typing.Tuple
typing
First
Shorter Set
min
set
max
while
int
First
Expand Intervals
typing.Iterable
Iterable
typing
range
comprehension
First
Seven Segment
issuperset
issubset
set-comp
islower
lower
First
Berserk Rook
set-comp
any
max
not
or
First
Merge Intervals
min
max
not
append
else
First
Power Supply
set-comp
keys
items
set
inline-if
First
Create Intervals
sorted
append
list
else
for
First
The End of Other
set-comp
any
if-comprehension
in
comprehension
Mine
First
Count Consecutive Summers
divmod
while
if
First
Common Tail
zip
None
list
int
for
1
First
Latest ISO datetime
inline-if
str
First
Multiplication Table
bin
map
sum
join
list-comp
First
Inside Block
Ellipsis
Tuple
typing.Tuple
bool
typing
First
Simple Areas
case
match-case
math.pi
pi
round
First
Funny Addition
sum
list-comp
comprehension
len
First
Bats Bunker
set-comp
float
any
add
List
First
Unix Match. Part 2
Ellipsis
find
bool
while
elif
First
Super Root
break
while
True
else
if
First
Reverse Roman Numerals
for
if
First
Unix Match. Part 1
any
enumerate
bool
elif
False
Ice Base
First
Exploring Wythoff Array
add
tuple
inline-if
while
in
1
First
e+pi
math.e
e
eval
itertools.product
product
2
First
15-puzzle Solvability
chain
itertools.chain
itertools
remove
enumerate
2
First
Fibonacci Spiral's End
cycle
itertools.cycle
next
yield
itertools
3
First
Radiation Search
from_iterable
itertools.from_iterable
chain
itertools.chain
collections.Counter
4
1
First
Largest Rectangle in a Histogram
min
max
range
len
for
5
2
First
The Greatest Common Divisor
as
First
Spaceship Landing Strip
all
max
in
list-comp
range
First
The Hidden Word
find
zip
enumerate
replace
max
1
First
Caesar Cipher (encryptor)
chr
ord
inline-if
join
comprehension
3
First
Similar Triangles
Tuple
typing.Tuple
List
typing.List
bool
First
Moria Doors
min
replace
set
max
lower
First
Pearls in the Box
float
round
count
int
str
First
Skew-symmetric Matrix
itertools.product
product
all
itertools
if-comprehension
First
Feed Pigeons
max
while
int
1
First
Weak Point
zip
index
min
sum
list-comp
First
Digit Stack
class
pop
inline-if
elif
append
First
The Most Numbers
min
max
not
if
The Game is Worth it!
First
The Final Stone
sort
pop
inline-if
while
append
2
1
First
Checkers Capture
tuple
remove
max
not
in
2
First
Knapsack Problem
tuple
sort
min
not
lambda
2
First
Reversi: Othello Moves
items
tuple
zip
sort
enumerate
2
First
Rolling 🎲!
index
break
inline-if
in
and
3
First
Magic with 5 cards
copy
type
insert
tuple
sort
7
First
Battle Dice
itertools.product
product
pass
get
itertools
11
First
The Territory of Go
set-comp
pop
set
not
while
15
First
The 88th Puzzle
tuple
pop
None
print
while
First
Texas Referee
combinations
itertools.combinations
collections.Counter
Counter
itertools
First
8 Puzzle
copy
add
tuple
List
typing.List
First
Unfair Dice
continue
break
not
lambda
inline-if
First
Bacteria Colonies
pass
all
any
add
set
First
The Shortest Knight's Path
pop
index
break
not
while
First
Probably Dice
or
range
len
for
if
First
Digits Doublets
itertools.zip_longest
zip_longest
set-comp
extend
itertools
First
The Square Chest
set-comp
all
List
typing.List
max
GitHub
First
Break Rings
combinations
itertools.combinations
collections.Counter
Counter
any
13
1
First
Ghosts Age
next
yield
None
while
True
1
First
City's Happiness
set-comp
values
pop
sum
while
Second
City's Happiness
set-comp
values
pop
sum
while
First
New Cities
set-comp
pop
set
while
if-comprehension
First
Node Disconnected Users
set-comp
values
keys
set
sum
First
Binary Count
int
First
How to Find Friends
set-comp
while
if-comprehension
in
list-comp
First
Min and Max
get
None
or
and
list
First
The Angles of a Triangle
math.asin
asin
math.degrees
degrees
math.acos
First
I Love Python!
with
class
object
print
First
Restricted Sum
inline-if
1
First
Number Base
find
else
int
str
for
First
Roman Numerals
collections.namedtuple
namedtuple
collections
while
elif
Dropbox
First
Count Squares
add
tuple
enumerate
set
sorted
2
1
First
How Much Gold
numpy.linalg
linalg
Fraction
fractions.Fraction
fractions
First
Crossword Solver
copy
yield
insert
all
zip
First
Count Chains
Tuple
typing.Tuple
set-comp
add
List
First
One line Drawing
set-comp
get
dict
pop
set
First
Achilles and the Tortoise
First
ADFGVX Cipher
isalnum
find
sort
enumerate
lower
First
Mono Captcha
List
typing.List
break
not
typing
First
IP Network: Route Summarization
functools.reduce
reduce
functools
all
bin
First
Restricted Prime
while
False
True
int
if
Everything is Object
First
Straight Fight
class
property
super
type
decorator
First
The Healers
class
property
super
type
decorator
First
3 Chefs
class
f-string
pass
First
Every Person is Unique
class
f-string
replace
inline-if
int
First
The Warriors
class
property
decorator
not
while
1
First
Capital City
class
hasattr
object
super
not
First
The Lancers
class
property
super
decorator
min
First
Army Battles
class
property
decorator
not
while
First
The Vampires
class
property
super
decorator
min
First
The Defenders
class
property
super
decorator
while
1
First
Building Base
class
f-string
Master of the Time Stone
First
Next Birthday
Dict
typing.Dict
Tuple
typing.Tuple
date
7
First
Lightbulb Operating
typing.Union
Union
Optional
typing.Optional
datetime.timedelta
First
Birthday Party
datetime.timedelta
timedelta
date
datetime.date
datetime
First
Multiple Lightbulbs
typing.Union
Union
Optional
typing.Optional
Tuple
First
Time Converter (24h to 12h)
f-string
elif
and
split
else
First
Weekly Calendar
datetime.fromordinal
fromordinal
date
datetime.date
datetime
First
Lightbulb Intro
datetime.datetime
datetime
List
typing.List
zip
First
The First Working Day
datetime.strptime
strptime
datetime.timedelta
timedelta
datetime.datetime
First
Lightbulb End Watching
Optional
typing.Optional
datetime.datetime
datetime
List
First
Unlucky Days
date
datetime.date
datetime
sum
range
First
Lightbulb Start Watching
Optional
typing.Optional
datetime.datetime
datetime
List
First
When is Friday?
date
datetime.date
datetime
inline-if
int
First
The Most Frequent Weekdays
date
datetime.date
ValueError
datetime
pop
First
Weekend Counter
datetime.timedelta
timedelta
datetime
while
First
Date and Time Converter
f-string
inline-if
split
int
str
Blizzard
First
Pattern Recognition
all
range
comprehension
len
for
11
Long
Fast Train
extend
List
typing.List
min
break
16
First
Flood Area
rfind
translate
collections.abc.Iterable
reverse
collections
First
String Conversion
set-comp
None
set
while
in
First
English to Braille Translator
zfill
bin
ord
map
isupper
First
Mathematically Lucky Tickets
set-comp
round
abs
bool
set
First
Can Balance
typing.Iterable
Iterable
typing
print
while
First
Painting Wall
continue
min
max
not
sum
First
The Rows of Cakes
set-comp
collections.Counter
Counter
items
tuple
First
Robot Sort
inline-if
range
list
str
len
First
Worth of Words
max
sum
comprehension
Rock
First
Triangular Islands
typing.Set
Set
items
typing.Iterable
Iterable
1
oneliner
Evenly Spaced Trees
math.gcd
gcd
set-comp
math
lambda
8
First
Greedy Number
Exception
raise
format
find
max
8
First
Mountain Scape
Tuple
typing.Tuple
copy
extend
List
10
First
Climbing Route
itertools.permutations
permutations
add
itertools
sort
11
First
On the same path
typing.Union
Union
Tuple
typing.Tuple
yield
11
First
Fused Cubes
clear
update
Tuple
typing.Tuple
set-comp
13
Set methods
Supply Line
difference
union
intersection
set-comp
find
14
Counter
Halloween Monsters
itertools.product
product
copy
collections.Counter
Counter
First
Tree Walker
type
values
dict
list
for
First
Hubspot Amulet
dot
numpy.dot
numpy.transpose
transpose
numpy.array
Yielding
Sum Consecutives
yield
not
range
else
len
First
Sort by Removing
enumerate
max
inline-if
if-comprehension
list-comp
First
Rectangles Union
Tuple
typing.Tuple
set-comp
List
typing.List
First
Evenly Spaced Trees
math.gcd
gcd
set-comp
List
typing.List
First
Caesar Cipher (decryptor)
is
chr
ord
isalpha
inline-if
1row
Caesar Cipher (decryptor)
chr
ord
isalpha
inline-if
join
First
Find Quotes
enumerate
if-comprehension
list-comp
split
comprehension
Shelter
First
Grille Cipher Attack
yield
List
typing.List
continue
pop
4
First
Stacking Cubes
Tuple
typing.Tuple
set-comp
List
typing.List
6
First
Family Dinner
List
typing.List
min
max
typing
6
First
Inscribe a Contour
continue
min
abs
break
max
7
First
Park Benches
Tuple
typing.Tuple
List
typing.List
max
7
First
Home Coming
items
List
typing.List
max
typing
11
First
Connect Stars
Tuple
typing.Tuple
set-comp
List
typing.List
13
First
Atbash Cipher
upper
find
isupper
enumerate
lower
20
First
Escape
abs
bool
inline-if
elif
False
First
Swap Nodes
zip
sum
list
comprehension
len
First
Fractions Addition
math.gcd
gcd
math
list-comp
range
First
Scytale Encryption
Optional
typing.Optional
None
typing
inline-if
First
Chess Knight
union
add
sort
index
break
Codeship
First
Workout
List
typing.List
zip
sort
min
8
First
River Crossing
add
continue
pop
min
None
12
First
DNA Common Sequence
sort
enumerate
min
set
max
First
Ugly Numbers
set-comp
min
set
sorted
while
First
Unique Email Addresses
add
find
replace
set
lower
First
Magic Square
copy.deepcopy
deepcopy
copy
all
zip
First
Cookies
ValueError
index
None
break
except
First
Web Log Sessions
splitlines
datetime.timedelta
timedelta
datetime.datetime
items
First
Number Guess
set-comp
pop
set
not
print
First
The Fastest Horse
index
min
max
list-comp
range
Watchtower
First
Four To The Floor
any
continue
sum
False
True
13