how do I identify if Python code was written for 2.7 or 3.x automatically.
Thank you
how do I identify if Python code was written for 2.7 or 3.x automatically.
Thank you
You could develop an algorithm that searches for print()
functions, f-strings, and other python3-exclusive features