Convert the following code from [source language] to [target language]. [paste your code here] Requirements: - Keep identical functionality - Follow [target language] best practices and idioms - Add comments where the logic differs significantly between languages - Point out any functionality that doesn't have a direct equivalent and how you handled it
💡 Has [variables]