2 st = speedtest.Speedtest()
4 def opciones(option,optione,optiones):
6 if option == 1 and optione == 2 and optiones == 3:
7 #print(st.download(), 'b/s')
8 mb=(st.download()*1.0E-6)
9 print("Velocidad de bajada:","{0:.2f}".format(mb),"mb")
10 #print(st.upload(), 'b/s')
11 mb2=(st.upload()*1.0E-6)
12 print("Velocidad de subida:","{0:.2f}".format(mb2),"mb")
14 st.get_servers(servernames)
15 print("Ping:",st.results.ping,'ms')
17 print("Please enter the correct choice!")
19 print("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-")
20 print("Haciendo prueba de velocidad en Python")
22 print("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-")