29
jtokaz
13 30 41
4442/ 4695
Last seen 4 years ago
Member for 10 years, 6 months, 12 days
Difficulty Normal
Learned Python through pyquick, blogs, and checkio. Trying to get good enough to help others with Python. 2LwithGA

Missions (206) / Solutions (262)
Best solutions / Newest solutions
Initiation
Compare Shifted
All the Same
Any
typing.Any
List
typing.List
bool
Home
First
Sort Array by Element Frequency
index
lambda
count
sorted
First
Pawn Brotherhood
chr
ord
sum
in
list-comp
Second
Non-unique Elements
count
if-comprehension
list-comp
comprehension
Imports Calendar & Time
Sun Angle
calendar.timegm
timegm
time.strptime
time
calendar
1
strptime & strftime & replace
Date and Time Converter
datetime.datetime
datetime
replace
str
str(f & p)time & leading zero regex & minute(s)/hour(s) regex
Date and Time Converter
re.sub
sub
datetime.datetime
r-string
datetime
Complex Plane Set Intersection
Pawn Brotherhood
intersection
set-comp
ord
sum
if-comprehension
1
str2min lambda
Sun Angle
calendar.timegm
timegm
time.strptime
time
calendar
First
Right to Left
replace
join
First
Days Between
not
while
in
elif
False
1
First
Three Words
map
isalpha
lambda
inline-if
join
First
Even the Last
sum
if
Complex Numbers and Sets
Pawn Brotherhood
intersection
ord
set
sum
if-comprehension
First
Non-unique Elements
filter
lambda
count
list
Electronic Station
First
Inside Block
enumerate
or
elif
and
True
4
Eval
Boolean Algebra
eval
str
14
First
Can You Pass?
pop
not
print
while
in
First
Mathematically Lucky Tickets
eval
extend
pass
except
try
re.sub
Brackets
re.sub
sub
r-string
re
bool
First
Digits Multiplication
eval
replace
join
str
First
Verify Anagrams
ascii_lowercase
string.ascii_lowercase
string
map
lower
First
Find Sequence
itertools.product
product
all
itertools
None
First
Brackets
replace
not
join
if-comprehension
in
Scientific Expedition
First
Follow Instructions
count
Zips
Cipher Map
extend
zip
map
lambda
sum
Zip for Rotation
Cipher Map
extend
zip
join
if-comprehension
list-comp
strptime & strftime
Time Converter (24h to 12h)
datetime.datetime
strip
datetime
replace
First
The Hidden Word
find
replace
max
lower
join
First
Call to Home
values
get
min
sum
split
First
I Love Python!
else
if
First
Letter Queue
pop
join
elif
append
for
First
Morse Clock
strip
map
min
join
split
First
Bird Language
while
in
elif
else
len
DEL
Bird Language
upper
isalpha
join
while
in
First
Pangram
ascii_letters
string.ascii_letters
string
set
lower
Min with Key=Tuple
The Most Wanted Letter
ord
isalpha
min
lower
lambda
Min with Key=Tuple2
The Most Wanted Letter
isalpha
min
lower
lambda
count
First
Striped Words
punctuation
string.punctuation
string
upper
find
First
Absolute Sorting
abs
lambda
sorted
Second
Absolute Sorting
abs
sorted
First
Common Words
filter
count
sorted
join
split
First
Secret Message
filter
isupper
join
str
Key Tuple
The Most Wanted Letter
ord
isalpha
lower
lambda
count
First
The Most Wanted Letter
ord
isalpha
lower
lambda
sum
O'Reilly
Reduce and Prepend
The Flat Dictionary
type
functools.reduce
reduce
functools
dict
3
3
First
The Flat Dictionary
type
functools.reduce
reduce
functools
dict
9
First
Flatten a List
type
lambda
inline-if
sum
list-comp
20
1
First
Cipher Crossword
copy.copy
copy.deepcopy
deepcopy
itertools.permutations
permutations
Sum and Recursive
Flatten a List
type
inline-if
sum
list
comprehension
First
Determine the Order
all
remove
index
break
set
First
Xs and Os Referee
yield
in
elif
range
for
4th
Xs and Os Referee
zip
join
in
for
if
Flatten to 1D Then Starts & Steps
Xs and Os Referee
zip
join
in
for
if
Zip Starts and Steps
Xs and Os Referee
zip
set
join
in
for
Zip Starts and Steps Second
Xs and Os Referee
zip
join
in
for
if
First
Count Inversions
range
len
for
if
First
Median
sorted
else
int
len
if
First
Loading Cargo
itertools.repeat
repeat
chain
itertools.chain
yield
First
Index Power
else
len
if
Second
Median
sorted
len
Incinerator
First
Building Base
class
map
join
str
zip(army_1.alive_queue, army_2.alive_queue)
Straight Fight
cycle
itertools.cycle
class
next
property
First
Army Units
class
staticmethod
decorator
pass
format
Second
Army Units
class
staticmethod
decorator
pass
format
Super & Next & Iter(())
The Healers
class
iter
next
property
super
type(attacker_on_deck) == Healer
The Healers
cycle
itertools.cycle
class
next
property
Next Iter to Find On Deck Unit
The Lancers
cycle
itertools.cycle
class
next
property
New Method Attacked
The Defenders
cycle
itertools.cycle
class
next
property
Next & New Func Revive & Corrected
The Lancers
cycle
itertools.cycle
class
next
property
Cycle and Zip
The Warriors
cycle
itertools.cycle
class
property
super
Next Is Alive
Army Battles
cycle
itertools.cycle
class
next
property
First
Friends
class
iter
next
remove
set
Cycle and Next
Multicolored Lamp
cycle
itertools.cycle
class
next
itertools
New Function revive_from_damage
The Vampires
cycle
itertools.cycle
class
next
property
Next and Iter
Army Battles
cycle
itertools.cycle
class
iter
next
Mine
First
The Einstein Problem-Lite
class
iter
capitalize
next
update
First
Color Map
issubset
frozenset
itertools.product
product
combinations
dict from zip
Caesar Cipher (encryptor)
ascii_lowercase
string.ascii_lowercase
as
string
get
Functools Cmp to Key
Bigger Together
cmp_to_key
functools.cmp_to_key
functools
map
lambda
First
Determinant
sum
if-comprehension
list-comp
range
comprehension
Complex Plane :-( :-]
Chess Knight
union
itertools.product
product
update
filter
First
The Greatest Common Divisor
min
max
while
len
if
First
Caesar Cipher (decryptor)
re.sub
sub
ascii_lowercase
string.ascii_lowercase
string
First
Caesar Cipher (encryptor)
ascii_lowercase
string.ascii_lowercase
string
get
dict
Depth First Search
Disposable Teleports
frozenset
union
set-comp
all
dict
First
Achilles and the Tortoise
First
Moore Neighbourhood
itertools.product
product
itertools
set
sum
First
Binary Count
bin
count
First
Fizz Buzz
strip
join
int
str
Ice Base
First
The Most Numbers
min
max
and
len
10
Recursion and Zip Second
Long Repeat
zip
if-comprehension
and
list-comp
comprehension
11
Recursion and Zip
Long Repeat
zip
join
if-comprehension
and
comprehension
14
First
Oil Pie
Fraction
fractions.Fraction
fractions
abs
sum
First
Counting Tiles
sum
if-comprehension
and
list-comp
range
itertools.combinations
Largest Rectangle in a Histogram
combinations
itertools.combinations
itertools
min
max
max of itertools.groupby
Long Repeat
groupby
itertools.groupby
itertools
max
list
1
First
Clock Angle
map
min
abs
split
int
Third
Roman Numerals
keys
dict
zip
max
while
1
First
How to Find Friends
values
re.search
search
r-string
get
Initial Dict Then Expand Dict
Roman Numerals
math.log10
log10
keys
round
math
zip roman_str, & roman_str[1:]
Reverse Roman Numerals
zip
sum
False
True
comprehension
sum map __contains__
Monkey Typing
map
lower
sum
First
Roman Numerals
math.log10
log10
math
elif
else
First
Feed Pigeons
max
while
if
First
Monkey Typing
lower
count
sum
if-comprehension
comprehension
Alice In Wonderland
First
The Fastest Horse
min
max
lambda
sum
range
3
Short
The Fastest Horse
index
min
max
lambda
count
First
Digits Doublets
insert
extend
inline-if
sum
while
First
Multiplication Table
bin
lambda
sum
join
list-comp
Max Count
The Fastest Horse
index
min
max
count
list-comp
Breadth First Search
The Shortest Knight's Path
ord
pop
set
while
if-comprehension
First
Transposed Matrix
list-comp
range
comprehension
len
GitHub
First
Paper Dice
itertools.product
product
keys
all
get
8
How about a nice game of chess?
Xs and Os Champion
copy.copy
copy
all
get
any
17
Interior Points and Sizes
Painting Wall
any
zip
sum
sorted
if-comprehension
First
Shooting Range
math.sqrt
sqrt
round
math
not
1
Eval and Strptime
Broken Clock
time.strptime
time
strptime
eval
map
Max with Key = (IsRepeat, Length, StartingLocation)
Long Repeat Inside
itertools.product
product
itertools
max
range
1
Heron and Recursion
Area of a Convex Polygon
math.sqrt
sqrt
math
map
abs
Reverse Enumerate Zip *
The Highest Building
zip
enumerate
max
sum
list
Combinations & Max with Key=Len
Long Repeat Inside
combinations
itertools.combinations
filter
any
itertools
First
Solution for Anything
class
True
First
Open Labyrinth
and
range
len
for
if
Second
Solution for Anything
class
lambda
True
Third
Solution for Anything
class
lambda
True
Iterative Depth First Search
Open Labyrinth
pop
not
while
in
and
Iterative Depth First Search 2
Open Labyrinth
pop
not
while
in
and
Recursive Depth First Search
Open Labyrinth
not
lambda
in
and
append
Breadth-First Search
Open Labyrinth
pop
not
while
in
and
First
The End of Other
combinations
itertools.combinations
itertools
or
in
Dropbox
First
Nonogram Row
itertools.product
product
extend
filter
itertools
9
LRU CACHE
Nonogram Row
functools.lru_cache
lru_cache
itertools.product
product
decorator
10
First
Place Queens
itertools.permutations
permutations
combinations
itertools.combinations
yield
First
URL Normalization
ascii_letters
string.ascii_letters
isalnum
digits
string.digits
Middle Out Early Exit
The Longest Palindromic
break
or
elif
range
else
First
Hubspot Amulet
math.floor
floor
math
map
lambda
First
Simple Hashlib
getattr
hashlib
update
First
The Best Number Ever
First
Friendly Number
round
abs
while
and
else
First
Humpty Dumpty Form
math.atanh
atanh
math.asin
asin
math.pi
First divide by 9, then divide by 8, then divide by 7, ...
Numbers Factory
insert
map
inline-if
join
while
First
Three Points Circle
rstrip
math.sqrt
sqrt
filter
math
Intersect Two Lines
Three Points Circle
collections.namedtuple
namedtuple
rstrip
math.sqrt
sqrt
First
Numbers Factory
functools.reduce
reduce
functools
max
lambda
Recursive, divide by 9, then 8, then 7
Numbers Factory
inline-if
int
str
if
Middle Out
The Longest Palindromic
break
or
elif
range
else
max over substrings; key=(is palindrome, len, -index)
The Longest Palindromic
combinations
itertools.combinations
itertools
index
max
Max over all substrings; key=(is palindrome, len)
The Longest Palindromic
combinations
itertools.combinations
itertools
max
lambda
First
Speech Module
strip
in
elif
range
if
PyCon TW
Product of Side Lengths & Semiperimeters
Simple Areas
math.pi
pi
functools.reduce
reduce
math.sqrt
10
1
First
Dark Labyrinth
add
dict
items
pop
print
13
First
How Much Gold
Fraction
fractions.Fraction
fractions
filter
lambda
Map Heights to Ints
Building Visibility
dict
enumerate
set
lambda
sum
First
Calculate Islands
add
remove
pop
set
print
3
First
Network Attack
filter
any
lambda
while
and
First
Express Delivery
itertools.permutations
permutations
combinations
itertools.combinations
values
All Any and Zip
House Password
all
any
zip
and
comprehension
Tiny Bubbles In the Wine
Robot Sort
join
append
range
list
str
First
Digit Stack
insert
pop
elif
split
int
First
Simple Areas
math.pi
pi
math.sqrt
sqrt
math
First
Golden Pyramid
type
tuple
max
list-comp
range
All Any Zip and No Len
House Password
all
any
zip
list-comp
comprehension
Check all conditions using re.search
House Password
re.search
search
all
re
split
First
House Password
digits
string.digits
ascii_uppercase
string.ascii_uppercase
ascii_lowercase
Positive Lookahead
House Password
re.search
search
re
bool
2
Storage
STR OF TUPLE AND SLICES
Exec Quine
str
5
Turn Right Else Straight
Hexagon Spiral
math.cos
cos
math.sin
sin
math.pi
6
1
First
Battle Dice
decorator
get
tuple
min
max
8
Base3 Subsquare
Forgetful Prisoner
random.choice
choice
OrderedDict
collections.OrderedDict
random
11
Breadth First Search
Haunted House
extend
dict
pop
min
abs
17
First
Digging a Canal
copy.copy
copy
filter
pop
lambda
First
Mind Switcher
class
chain
itertools.chain
iter
next
First
Playfair Cipher
digits
string.digits
itertools.product
product
ascii_lowercase
First
English to Braille Translator
zfill
math.ceil
ceil
isnumeric
bin
First
Word Pattern
all
enumerate
isalpha
lambda
and
First
Square Spiral
cycle
itertools.cycle
type
itertools
abs
First
Earth Distances
math.atan2
atan2
math.cos
cos
math.sin
sieve of eratosthenes
Restricted Prime
index
while
True
if
First
Moria Doors
ascii_lowercase
string.ascii_lowercase
string
min
lower
First
The Rows of Cakes
values
get
tuple
max
not
First
Saw the Stick
sum
while
append
list-comp
range
First
Weak Point
map
enumerate
lambda
sum
sorted
First
Skew-symmetric Matrix
set
False
True
range
len
HubSpot
One Liner Program
Supply Stations
extend
get
add
dict
items
6
Matrix Multiplication
Expected Dice
itertools.product
product
itertools
map
lambda
11
First
Auto Painting
insert
min
join
list-comp
range
chain and cycle
Repeating Decimals
cycle
itertools.cycle
chain
itertools.chain
next
Length of a Long String
Restricted Sum
map
min
lambda
join
len
1
First
Restricted Sum
lambda
inline-if
First
The Hamming Distance
lambda
inline-if
First
Number Base
functools.reduce
reduce
functools
except
try
Try Int
Number Base
except
try
int
Blizzard
Rise to vote, sir
Palindromic Palindrome
lambda
14
1
DFS
Sudoku Solver
copy.deepcopy
deepcopy
itertools.product
product
copy
First
Radiation Search
itertools.product
product
collections.Counter
Counter
itertools
First
Safe Coasts
get
any
dict
items
enumerate
First
Stair Steps
decorator
all
tuple
max
sum
Second
Stressful Subject
functools.reduce
reduce
endswith
functools
any
First
Stressful Subject
functools.reduce
reduce
endswith
functools
any
First
Min and Max
get
None
lambda
or
inline-if
No Sorted
Min and Max
get
enumerate
min
not
lambda
First
Spaceship Landing Strip
all
max
in
list-comp
range
Sorted
Min and Max
min
inline-if
sorted
True
Operator, Not Sorted
Min and Max
gt
operator.gt
lt
operator.lt
operator
1
First
Weekend Counter
datetime.weekday
datetime.fromordinal
fromordinal
weekday
date
First
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
Rock
65 chars
Parity Bit Generator
chr
bin
lambda
count
join
1
3
First
Chicken Hunt
itertools.product
product
dict
itertools
map
4
Hamiltonian Backwards
Family Gifts
random.sample
sample
copy.copy
random
itertools.permutations
5
First
Crossword Solver
copy.copy
itertools.count
copy.deepcopy
deepcopy
copy
14
LRU CACHE
Most Efficient Cutting
functools.lru_cache
lru_cache
decorator
functools
tuple
17
First
Water Jars
keys
get
pop
min
not
1
First
Life Counter
itertools.product
product
copy
filter
itertools
First
Berserk Rook
yield
chr
ord
break
set
First
Web Log Sessions
datetime.datetime
datetime
map
abs
replace
First
Super Root
abs
while
elif
True
else
First
CheckSum
isalnum
isnumeric
ord
map
lambda
Shelter
RegEx
Pattern Recognition
iter
re.sub
sub
r-string
zip
8
Complex
The Lantern Festival
iter
ascii_uppercase
string.ascii_uppercase
next
string
19
First
AMSCO Cipher
zip
map
enumerate
min
replace
First
ADFGVX Cipher
copy.copy
cycle
itertools.cycle
digits
string.digits
First
One line Drawing
OrderedDict
collections.OrderedDict
frozenset
chain
itertools.chain
First
Ghosts Age
while
in
append
True
else
Codeship
First
Magic Domino
random.sample
sample
random
itertools.permutations
permutations
9
ordered_dict
The 88th Puzzle
OrderedDict
collections.OrderedDict
items
collections
not
17
ONE, SIDE, OR SIDE PLUS ONE
Unfair Dice
itertools.product
product
itertools
enumerate
abs
First
Texas Referee
combinations
itertools.combinations
all
itertools
index
First
Snake Lite
random.sample
sample
copy.copy
OrderedDict
collections.OrderedDict
Dynamic Programming functools.lru_cache()
Probably Dice
functools.lru_cache
lru_cache
decorator
functools
min
First
Probably Dice
copy.copy
itertools.product
product
copy
keys
First
Behind 2048
insert
r-string
any
while
if-comprehension
Not a Good Soln
Minesweeper
all
dict
enumerate
abs
sum
First
Bats Bunker
frozenset
combinations
itertools.combinations
all
get
First
8 Puzzle
copy.copy
copy
pop
index
not
First
Pearls in the Box
copy.copy
copy
round
enumerate
count
First
The Square Chest
extend
all
dict
min
in
Hermit
Heron + Law of Cosines
Strawberry Fields
math.acos
acos
math.pi
pi
math.sqrt
5
First
Simplification
math.factorial
factorial
eval
all
math
9
First
Ore In The Desert
math.sqrt
sqrt
all
round
math
10
First
Break Rings
frozenset
iter
combinations
itertools.combinations
next
17
BFS
Anagrams By Stacks
copy.deepcopy
deepcopy
startswith
copy
map
First
Reverse Engineer
randint
random.randint
ZeroDivisionError
random
eval
First
Network Loops
chain
itertools.chain
dict
itertools
map
Half Steps
Keywords Finder
get
dict
round
find
break
First
Colder-Warmer
max
sum
print
elif
list-comp
n/divisor - (divisor-1)/2 is positive int & MODF
Count Consecutive Summers
math.modf
modf
math
lambda
sum
Some Zips
Mono Captcha
functools.reduce
reduce
functools
get
dict
n/divisor - (divisor-1)/2 is positive integer
Count Consecutive Summers
sum
in
range
comprehension
1
Ugly
The Good Radix
pass
except
try
print
while
Watchtower
Dynamic Programming Memoized Recursion
DNA Common Sequence
decorator
find
max
join
if-comprehension
13
2
First
Number Guess
all
max
not
if-comprehension
in
13
1
First
Convex Hull
copy.deepcopy
deepcopy
copy
math.sqrt
sqrt
17
First
Bacteria Colonies
itertools.product
product
all
get
dict
17
Minimize Max Possibilities, Depth=1
Bulls and Cows
values
get
dict
format
zip
First
Magic Square
copy.deepcopy
deepcopy
copy
keys
all
First
Vigenere Cipher
chr
ord
zip
break
lambda
First
Rotate Hole
all
append
range
comprehension
len
First
Numbered Triangles
itertools.permutations
permutations
itertools.product
product
all
First
Funny Addition
sleep
time.sleep
time
sum
print