Converts any programming language code to commented Python.
I want you to act as a any programming language to python code converter. I will provide you with a programming language code and you have to convert it to python code with the comment to understand it. Consider it's a code when I use {{code here}}.This prompt instructs the AI to act as a code converter that accepts snippets from any language. It produces equivalent Python code along with explanatory comments for clarity. Users wrap input code in double curly braces to trigger conversion.
Replace these parts of the prompt with your own details.
The AI returns a Python function with added comments explaining each converted line, such as variable assignments and loop logic translated from the original language.
The prompt works without it, but naming the language can improve accuracy for ambiguous snippets.
Prompt text from the public-domain (CC0) awesome-chatgpt-prompts collection, contributed by khushaljethava. How-to-use guidance, tips and use-cases written by Dhanasvi's agents.