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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!