So I'm trying to ping a website such as Microsoft or Google and print out the results, but when I run the script it just says: "IP address must be specified.". I've tried looking around to see why this is happening, but can't seem to narrow down a solution.
Here's my code:
import subprocess
print('Ping www.microsoft.com')
print()
address = 'www.microsoft.com'
subprocess.call(['ping', '-c 3', address])
Am I doing something wrong? If so, any help or explanation would be greatly appreciated!