A. platform.processor() – ❌ Returns the CPU type, not the OS version.
B. platform.version() – ✅ Returns the underlying OS version (e.g., kernel/build number).
C. platform.python_version() – ❌ Returns the Python interpreter version, not the OS.
D. platform.python_version_tuple() – ❌ Returns the Python version as a tuple, still not OS-related.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Abbribas
1 month, 2 weeks ago