12
Shakiestnerd
2 6 21
684/ 745
Last seen 8 months ago
Member for 9 years, 6 months, 22 days
Difficulty Normal
Missions (77) / Solutions (53)
Best solutions / Newest solutions
Initiation
First
The Most Frequent
collections.Counter
Counter
collections
1
Used try except to let code fail gracefully
Remove All Before
ValueError
index
typing.Iterable
Iterable
except
Brute force using string conversion to separate digits
Max Digit
int
str
for
if
walk though characters until one isn't 0
Beginning Zeros
break
else
int
str
for
Fancy list comprehension
Split Pairs
list-comp
range
comprehension
len
if
First
Between Markers (simplified)
find
str
First
First Word (simplified)
split
str
Using built-in upper function to enable comparison
All Upper I
upper
bool
False
True
str
Can't get much simpler
Acceptable Password I
bool
str
len
Nothing special
Count Digits
isdigit
int
str
for
if
Tricky - needs to be more elegant
Nearest Value
enumerate
set
sorted
in
elif
Probably not the simplest, but it's hopefully clear.
End Zeros
break
else
int
str
for
Trying to keep it simple
Number Length
int
str
len
Using slice to reverse string
Backward String
str
In python, unlike golf, slicing is good
Replace First
typing.Iterable
Iterable
typing
list
Use modulus operator to check for even
Is Even
bool
False
True
int
if
Just using try - except to eliminate non integers
Sum Numbers
except
try
split
int
str
2
First
All the Same
Any
typing.Any
List
typing.List
bool
First
Easy Unpack
Home
First
Right to Left
replace
join
Using Regex
Three Words
re.search
search
r-string
re
None
Used the collections library to give a big assist.
Sort Array by Element Frequency
extend
collections.Counter
Counter
collections
print
Get to use some integer math
Split List
list
else
len
if
Brute force - couldn't think of anything elegant
Backward Each Word
else
str
len
for
if
Did a kludge to get around spaces in the string.
Morse Decoder
capitalize
replace
split
else
for
First
Even the Last
sum
else
len
if
First
Days Between
datetime.datetime
datetime
abs
Verbose, but commented; wanted to try out "sets" as part of the solution
Pawn Brotherhood
intersection
chr
ord
set
print
Electronic Station
Continuing to add rules for password validation
Acceptable Password V
isalpha
isdigit
bool
lower
in
First solve - should be able to improve on this
Sort by Extension
List
typing.List
typing
sorted
elif
Basic with rule to eliminate 0 and 1 length lists
Ascending List
typing.Iterable
Iterable
bool
typing
False
Adding more rules to the password routine
Acceptable Password IV
isalpha
isdigit
bool
elif
False
Added an alpha check to the digit check
Acceptable Password III
isalpha
isdigit
bool
elif
False
First Solve of Words Order
Words Order
remove
find
bool
set
in
Lots of rules where the order matters
Acceptable Password VI
isalpha
isdigit
bool
set
lower
Eliminate empty strings and digits then check for upper case
All Upper II
strip
upper
isdigit
bool
False
Used isdigit() to make sure the password contained a digit
Acceptable Password II
isdigit
bool
False
True
str
May be overkill - ignores most punctuation
Verify Anagrams
string.whitespace
whitespace
punctuation
string.punctuation
string
1
Scientific Expedition
First
I Love Python!
First
Bird Language
continue
print
in
for
if
O'Reilly
First
Count Inversions
range
len
for
if
First
Flatten a List
isinstance
extend
append
list
else
1
First
Index Power
len
if
Mine
First
Binary Count
format
count
1
First
Fizz Buzz
elif
and
str
if
Ice Base
A little tricky with handling spaces in the message
Morse Encoder
lower
join
append
else
for
First
Long Repeat
or
else
len
for
if
Used max(args)-min(args)
The Most Numbers
min
max
else
len
if
First
Monkey Typing
find
lower
for
if
GitHub
First
The End of Other
endswith
False
and
True
for
1
Dropbox
First time I added a function to help in the solution
Worth of Words
for
if
HubSpot
First
Number Base
except
try
int
Recursion was the only thing I could think of
Restricted Sum
else
len
if