code.py
import socket hostname = input("Please enter website address:\n") # IP lookup from hostname print(f'The {hostname} IP Address is {socket.gethostbyname(hostname)}')
Related posts:
- Python 3 Selenium Open URLs in Multiple Tabs inside Browser
- Python 3 Find Domain Name From IP Address Using Socket Module
- Wordle Clone JavaScript – Full Source Code
- Convert YAML to CSV File Using Python 3 and pyyaml
- Get Coordinates & Dimensions of Element with Python and Selenium
- Find Duplicate or Repeating Words in String Using C
- Python 3 Code to Find Frequency of Each Word in String
- Find Duplicate or Repeating Words in a String Using Python 3
- Python 3 Code to Find Common Words in Two Strings
- C++ Find All Words Greater than Given Length K in String
- Python 3 Find All Words Greater than Given Length K in String
- Python 3 Code to Find Uncommon Words Between Two Strings in Command Line
- Python 3 Code to Find the Longest Word or String inside List
- Python 3 Code to Find Difference Between Two Sets Using (-) Operator & difference() Method
- Python 3 Find Difference Between Two Tuples in Command Line
- Python 3 Pandas Code to Find the Difference Between Two Datetimes in Milliseconds
- Python 3 Find Difference Between Two Dates in Hours, Minutes & Seconds
- Python 3 Find Difference Between Two Lists Using set() Method
- Python 3 Find Difference Between Two Timestamps in Days
- Python 3 Find Difference Between Two Timestamps in Minutes