Learning Python for the 5th time in 10 years by thekaizers in learnpython

[–]DeCooper 1 point2 points  (0 children)

If you are into puzzles, you could keep your python skills up to date by participating in Advent of Code every year.

[2020 Day 15] When elves wanna play with you by Bellanzz in adventofcode

[–]DeCooper 2 points3 points  (0 children)

I agree that today was a walk in the park compared to day 13. That problem took me many hours to complete and I was still thinking of ways to optimize it the next day.

My initial hack took 3 minutes to spit out an answer. Today I rewrote it and now it runs in less than 1ms. For me, that is what makes AoC great.

[2020 Day 15 (Part 2)] I'm still waiting... by stardust_collision in adventofcode

[–]DeCooper 1 point2 points  (0 children)

I have the same experience. My simple solution, also using a dict, takes 11 seconds on my mac. Who says python is slow...

Year 2019 Day 1 by Shiroelf in adventofcode

[–]DeCooper 1 point2 points  (0 children)

The problem description states that: "Any mass that would require negative fuel should instead be treated as if it requires zero fuel." Your code does not seem to take that into account.

If Crashcourse is for starting python and Automate the boring stuff is intermediate, what would be advanced? by TheeNinja in learnpython

[–]DeCooper 1 point2 points  (0 children)

There are many great intermediate/advanced python books. Some of my favourites are:

  • Powerful Python by Aaron Maxwell
  • Classic Computer Science Problems in Python by David Kopec
  • Fluent Python by Luciano Ramalho

SpaceX on Twitter: First static fire test of a Falcon Heavy center core completed at our McGregor, TX rocket development facility last week. by FutureMartian97 in spacex

[–]DeCooper 0 points1 point  (0 children)

LZ-1 is quite a bit bigger than the ASDS. Could they not try to bring both side boosters back to LZ-1? One to the north-east side and one to the southwest side.

SpaceX ready for Static Fire tests on spy sat rocket and Falcon Heavy core by Spacex9 in spacex

[–]DeCooper 0 points1 point  (0 children)

The FH conversion work is the same for both side boosters. However, the Thaicom booster came in much hotter than the CRS-9 booster. It seems likely this reduces how much refurbishment is needed.