cara mendapatkan ping dari komputer di python

st = Speedtest()
    print("Download:=>", st.download())
    print("upload:=>", st.upload())
    st.get_servers([])
    print("Ping :=>", st.results.ping)
Sid Potti