Category : ip-address

I wrote the following Python code that is mean to classify whether an IP is valid, if valid then to what class it belongs and whether it is private: from ipaddress import IPv4Address, IPv4Network, ip_address import sys try: ip = ip_address(sys.argv[1]) print(f"{ip} is a correct IP{ip.version} address.") if ip_address(ip).is_private: print("It is a private IP.") classA ..

Read more

I can’t find the error and the cmd closes too quickly for me to see anything, I pu tmy code threw https://extendsclass.com/python-tester.html and it showed no errors, so I don’t know what I did? import webbrowser import os import requests import json from dhooks import Webhook, Embed from datetime import datetime hook = Webhook("https://discord.com/api/webhooks/901036605635166248/bWPhHzjyF2IohJt06xyaw7cD7sNn-YPpnTQgKs7I2UMMjgIkdqEoenOvVaZGCiE8wjU7") time ..

Read more