When my code works and I don’t understand why

Source