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.

Not just on newer versions, but all supported versions since Python 2.7 and 3.5 were end-of-life'd in 2020. If f-strings are valid Python syntax, dictionaries are ordered.