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