Question: Python How can I make this print only 100 times import subprocess import datetime while 1: try: subprocess.check_output(['ping -l 1000 www.google.com c- 100']) except: print(Ping
Python
How can I make this print only 100 times
import subprocess import datetime
while 1: try: subprocess.check_output(['ping -l 1000 www.google.com c- 100']) except: print("Ping google.com:",(datetime.datetime.now().strftime("%H:%M:%S")))
Please type answer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
