import subprocess def main(): host = input("Enter Host: ") packet = int(input(" Enter Packet: ")) print(" ") ping = subprocess.getoutput(f"ping -w {packet} {host}") print(ping) main()