Python Programming - Standard Libraries - Discussion

Discussion Forum : Standard Libraries - General Questions (Q.No. 71)
71.
What is the purpose of the platform module?
Sorting elements in a list
Providing access to platform-specific APIs
Handling exceptions and errors
Working with cryptographic hash functions
Answer: Option
Explanation:
import platform

# Example usage of platform module
platform_name = platform.system()
print(f"Platform: {platform_name}")
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.