21
adamspj
5 24 40 Leader of the month
2642/ 2695
Awesome Team Paul Adams
Last seen 20 hours ago
Member for 3 months, 27 days
Difficulty Normal
Missions (218) / Solutions (161)
Best solutions / Newest solutions
Home
Using datetime
Sun Angle
combine
datetime.combine
datetime.today
today
datetime.fromisoformat
1
liar
Three Words
partition
isalpha
bool
while
False
Ceiling division -(-int // 2)
Split List
Any
typing.Any
typing.Iterable
Iterable
typing
Using Partition
Morse Decoder
partition
upper
while
split
str
Protectors
Pawn Brotherhood
chr
ord
bool
set
or
A Solution That Shouldn't Work (Passed anyway!!)
Sort Array by Element Frequency
get
pop
typing.Iterable
Iterable
max
1
Electronic Station
Step by Step
Surjection Strings
bool
not
in
elif
False
First
Similar Triangles
Tuple
typing.Tuple
math.sqrt
sqrt
float
Making strings, searching using re module (regular expressions)
Find Sequence
case
match-case
copy.deepcopy
deepcopy
reverse
Split and Join to Kill the Whitespace
Verify Anagrams
bool
lower
sorted
join
split
Removing paired adjacent brackets, inside out
Brackets
case
match-case
chr
pop
break
Scientific Expedition
Heavily Commented
Combining Celebrity Names
re.compile
compile
re
bool
max
rotate, clue, pad, return
Nonogram Encode
zip
enumerate
None
max
join
Methodical
Longest Substring of Unique Characters
chr
add
set
max
range
Using Enum
Caps Lock
Enum
enum.Enum
enum
class
upper
Straightforward
Beat The Previous
None
append
list
else
int
It works, but it's ugly
Count Substring Occurrences
find
lower
while
else
int
Bingo Bango
Fuzzy String Matching
continue
enumerate
bool
max
int
Focus on Clarity
Replace All Occurrences
find
while
else
str
len
in list
Count Vowels
lower
print
in
range
int
Hmmm...
Latest ISO datetime
datetime.fromisoformat
fromisoformat
datetime.datetime
datetime
max
Step by Step
Convert and Aggregate
dict
tuple
continue
in
list
decomposition
Remove Accents
decomposition
unicodedata.decomposition
combining
unicodedata.combining
unicodedata
It is what it is
YAML. Simple Dict
partition
strip
dict
isdigit
split
Datetime with formatting tweaks
Time Converter (24h to 12h)
case
match-case
datetime.strptime
strptime
datetime.datetime
Step by Step
The Hidden Word
find
enumerate
replace
max
not
Several Functions
Call to Home
partition
collections.defaultdict
defaultdict
values
collections
Straightforward
Sum by Type
type
tuple
list
else
int
count()
Follow Instructions
tuple
count
list
int
str
First
Goes Right After
find
bool
print
False
True
Bitwise Operators and Translate
Morse Clock
translate
ord
list-comp
split
range
re.Pattern.finditer()
Conversion from CamelCase
re.compile
compile
re
lower
str
capitalize()
Conversion into CamelCase
capitalize
join
list-comp
split
comprehension
deque
Letter Queue
collections.deque
deque
collections
join
elif
Python Lore
I Love Python!
re
Striped Words
IGNORECASE
re.IGNORECASE
re.compile
compile
re
Continue
Bird Language
continue
print
while
in
str
Several Functions
Cipher Map
reversed
List
typing.List
zip
enumerate
First
Pangram
isalpha
bool
set
lower
sorted
Nothing Special
Common Words
set
sorted
join
if-comprehension
in
First
Absolute Sorting
sort
abs
print
list
int
comprehension
Secret Message
isupper
join
if-comprehension
list-comp
comprehension
Experimenting with re module
The Most Wanted Letter
findall
re.findall
sort
re
lower
O'Reilly
Coords_from_letter
String-2-Matrix
divmod
tuple
ord
isupper
bool
5
Letter_from_coords (multiplying bool)
Matrix-2-String
chr
tuple
ord
False
range
16
Every Which Way
Knapsack Problem
itertools.permutations
permutations
itertools
tuple
enumerate
Can it be done more simply than this?
Sum of Digits
else
int
if
1
Recursive extend
Flatten a List
collections.abc.Iterable
isinstance
extend
collections
Iterable
3
Lots of code! Eek!
Multiple Lightbulbs
itertools.count
typing.Union
Union
Optional
typing.Optional
A Bit Clunky
Lightbulb End Watching
Optional
typing.Optional
datetime.timedelta
timedelta
f-string
Straightforward
The Final Stone
pop
index
max
not
while
My first recursive function
How Deep
type
tuple
max
int
for
Playing with datetime.datetime
Time Converter (12h to 24h)
datetime.datetime
datetime
replace
in
if
All Cases Considered
Lightbulb Start Watching
Optional
typing.Optional
datetime.timedelta
timedelta
datetime.datetime
Chunk by Chunk
Chunk
collections.abc.Iterable
divmod
collections
Iterable
append
Straightforward
Remove All After
collections.abc.Iterable
collections
index
Iterable
in
Timedelta object to collect differences in time
Lightbulb Intro
datetime.timedelta
timedelta
datetime.datetime
datetime
List
Compressor as Generator
Compress List
collections.abc.Iterable
yield
collections
continue
None
OrderedDict
Frequency Sorting
OrderedDict
collections.OrderedDict
collections.abc.Iterable
extend
items
Truthometer
Majority
bool
list
else
for
if
Take 'em Out, Put 'em Back
Sort Except Zero
collections.abc.Iterable
insert
collections
sort
enumerate
Something
Xs and Os Referee
zip
append
list-comp
list
comprehension
Maybe a strange way to do it
Median
float
sort
list
int
len
Incinerator
Frozenset and Discard
Friends
class
discard
frozenset
add
set
Using datetime
Microwave Ovens
combine
datetime.combine
datetime.time
case
match-case
War is Hell
The Warlords
class
property
super
type
decorator
Pokey Stabby Things
The Weapons
class
property
super
decorator
min
Armies of the Dead (Dead soldiers don't fight, but don't get deleted)
Straight Fight
class
property
super
decorator
min
Oh so lonely
Capital City
class
super
None
if
To super() or not to super()
Army Units
class
super
f-string
str
Pass It On
Geometry Figures
math.tan
tan
math.radians
radians
class
Backup Fighters and Impale Damage
The Lancers
class
property
super
decorator
None
A Little More Than Is Needed
Dialogues
class
Exception
raise
super
tuple
Something
Voice TV Control
class
isinstance
f-string
in
elif
Cool story, bro!
Every Person is Unique
case
match-case
class
datetime.strptime
strptime
Yup
Party Invitations
class
f-string
remove
in
append
Where's my wine?
3 Chefs
class
super
f-string
int
Version = namedtuple
Text Editor
class
collections.namedtuple
namedtuple
f-string
collections
Recursive call, reinitialize
Multicolored Lamp
class
iter
next
None
else
Last Man Standing
Army Battles
class
property
super
decorator
bool
Nothin' Fancy
Building Base
class
f-string
Mine
A Unique Approach to the Sort?
Bigger Together
float
List
typing.List
sort
enumerate
3
re and replace
Adjacent Letters
re.search
search
r-string
re
replace
5
2
Straightforward
Postfix Evaluation
case
match-case
typing.Union
Union
type
18
Meh. It works, I guess.
Longest Common Prefix
startswith
break
except
try
not
First
Aggregate by Operation
case
match-case
dict
tuple
continue
Dunno
Switch Keys to Values
add
dict
set
else
str
Clunky
Currency Style
itertools.takewhile
takewhile
isnumeric
re.compile
compile
Match Case
Fizz Buzz
case
match-case
int
str
1
For Loop
Best Stock
float
dict
items
str
for
product()
Moore Neighbourhood
itertools.product
product
itertools
min
max
Counting chars in string
Binary Count
bin
count
int
Ice Base
Recursion (and "gen_primes()" third-party function)
The Centrifuge Problem
setdefault
next
yield
add
bool
9
Reversed
Colorful Disks
Ellipsis
reversed
tuple
int
for
11
Methodical
One Switch Strings
bool
False
and
append
True
13
Cheating (use eval())
Is String a Number? (Part II)
eval
bool
except
try
or
re.Pattern.fullmatch()
Is String a Number? (Part II)
re.compile
compile
re
None
bool
remove() and extend()
Move Zeros
reversed
extend
remove
typing.Iterable
Iterable
isnumeric()
Is String a Number?
isnumeric
bool
str
namedtuple
Count Chains
collections.namedtuple
namedtuple
Tuple
typing.Tuple
math.sqrt
Nothin' Fancy
Oil Pie
Fraction
fractions.Fraction
fractions
abs
sum
Using re
Find Quotes
re.compile
compile
r-string
re
Combinations
Largest Rectangle in a Histogram
combinations
itertools.combinations
itertools
min
max
Sets of Friends
How to Find Friends
isdisjoint
update
extend
add
break
Eat or Die
Feed Pigeons
min
max
while
int
if
Break down by decimal component, using functools partial()
Roman Numerals
functools.partial
partial
functools
elif
range
Bleh
Monkey Typing
set
lower
in
int
str
Alice In Wonderland
Functions Galore
Bishop vs Aliens
case
match-case
tuple
continue
bool
12
Straightforward
Swap Nodes
extend
append
range
len
for
GitHub
Reverse and Find (Reusing name of immutable set)
The End of Other
add
find
set
False
and
Zap
Power Supply
update
values
remove
pop
bool
What's poppin'?
Merge Intervals
extend
tuple
pop
max
list
chain()
Expand Intervals
chain
itertools.chain
itertools
typing.Iterable
Iterable
Mostly random: Look, turn, go!
Open Labyrinth
randint
random.randint
class
random
tuple
Dropbox
A Start
Calculator-I
case
match-case
pass
isdigit
not
14
namedtuple
Frogs Collision
collections.namedtuple
namedtuple
tuple
collections
None
17
Keepin' It Simple
The Longest Word
strip
max
not
split
str
18
really_screwed_text
Revorse the vewels
upper
isupper
enumerate
pop
lower
Bingo Bango
All Permutations
collections.abc.Iterable
itertools.permutations
permutations
itertools
collections
Several Short and Clear Functions
Rotating Grille Cipher
iter
next
reversed
tuple
zip
Yeah...
Sum of Integers
sum
range
comprehension
int
Three Functions
Sort Sorted Groups
case
match-case
extend
tuple
continue
1
New and Improved: Two Functions
Sort Sorted Groups
case
match-case
extend
tuple
continue
Recursively placing queens (tracking available squares)
Place Queens
set-comp
chr
add
remove
ord
Walruses
Common Tail
min
None
break
while
list
Two functions
Scytale Encryption
itertools.zip_longest
zip_longest
Optional
typing.Optional
itertools
Urihg
Atbash Cipher
translate
str
It Does the Job
Worth of Words
sum
list-comp
comprehension
int
str
73.8357
The Best Number Ever
Clear, Not Terse! (Several Functions)
Three Points Circle
collections.namedtuple
namedtuple
intersection
f-string
float
Using Decimal Class
Friendly Number
ROUND_HALF_UP
decimal.ROUND_HALF_UP
decimal.getcontext
getcontext
Decimal
Generator for Combos of Increasing Length
Numbers Factory
combinations_with_replacement
itertools.combinations_with_replacement
StopIteration
next
yield
Oddly works (but not evenly!)
The Longest Palindromic
break
max
while
list-comp
range
Odd & Even Palindromes
The Longest Palindromic
break
max
while
elif
False
List then join
Speech Module
join
elif
append
int
str
PyCon TW
OOP: Practicing @property
Digit Stack
case
match-case
partition
class
property
OOP: Building and Rectangle Classes
Building Visibility
class
extend
f-string
sort
enumerate
Very Straightforward
Ryerson Letter Grade
while
list-comp
comprehension
int
str
Bingo Bango
Sum Consecutives
groupby
itertools.groupby
itertools
list-comp
list
OOP
Calculate Islands
class
collections.namedtuple
namedtuple
copy.deepcopy
deepcopy
match case
Simple Areas
case
match-case
math.pi
pi
round
re
House Password
re.search
search
re
bool
not
2
Storage
Slope and Intercept
The Rows of Cakes
case
match-case
Fraction
fractions.Fraction
fractions
First
Moria Doors
intersection
update
float
continue
enumerate
HubSpot
Convoluted (tracking adjustable sessions)
Workout
add
round
tuple
remove
List
9
Another mission solved with partition()
Non Empty Lines
partition
strip
while
int
str
Evaluating Each Digit
Number Base
isnumeric
ord
enumerate
else
int
Blizzard
groupby()
Stressful Subject
groupby
itertools.groupby
itertools
isupper
isalpha
reduce()
Min and Max
functools.reduce
reduce
functools
get
lambda
No triangle that SUX allowed
The Angles of a Triangle
Exception
raise
math.degrees
degrees
math.acos
Rock
Meh
Sort by Removing
append
list
for
if
Codeship
Weirdword Generator
Champernowne Word
next
yield
not
while
True
19