Post

That moment when you accidentally use a dict instead of an array and end up with random iteration order. Although supposedly it shouldn't happen on newer Python versions?

freeCodeCamp.org@freecodecamp.bsky.social

It's day 6 of Space Week, and here's your coding challenge: determine the current phase of the moon. 🌕 Check it out on the freeCodeCamp mobile app.

Ah of course. I feel silly now. I made a set of tuples instead of a dict. I am used to TS, still getting the hang of Python syntax.

0 reposts2 likes