15
Stephen Spears
Last seen 5 years ago
Member for 9 years, 4 months, 21 days
Difficulty Normal
It took me half an hour to decipher all of this, but I'm pretty sure I've learned quite a bit. I really like the way map() came in handy here.
More
I learned two tricks here. First, I imported math for the ceil() method but it wasn't necessary. And second I like --- max(x, x*2-100). Thanks for the lesson.
More
I've never used or seen the operator module. Thanks for giving me something new to learn.
More
zip(*matrix). It took me a while to wrap my head around this, but I think I've got it now. Thanks for the lesson.
More
Thanks for this. Though it's a bit confusing it did teach me the method re.compile()
More
Thanks for this. The more I see regular expressions the more I understand about them.
More
I like the use of the min() and max() functions. I used if statements to avoid IndexErrors. I'll remember this approach for next time.
More
I just learned you can iterate through a list on the same row as the comprehension takes place. Line 16/17. Thanks for this insight.
More
You don't need the 'and' conditions on your if statements.
if number%3==0:
return "Fizz"
elif number%5==0:
return "Buzz"
elif number%3==0 and number%5==0:
reutn "Fizz Buzz"
works the same.
More
Dang, I though my solution was nice. I really need to study reduce() and learn to use it properly like this. Thanks for this.
More
Thanks for this. Every lambda I see gets me closer to fully understanding how to use them.
More
I like this solution. You used replace() in place of my join() and split(). Thanks for this.
More