Skip to content

How to get pc name with Python?

# credit to the Stack Overflow user in the source link

import platform

# or equivalently

import socket
See also  How to use goto in Python turtle?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.