How to Solve NameError: name 'speedtest' is not defined

Solution: Import the 'speedtest' module

To Solve the error, add the following line to the top of your code.

import speedtest

 

For more information:
Python speedtest