I have the following code:
while True:
            try:
                HOST = input(float(('Enter host IP'))
            except ValueError:
                print('Error. That is not a valid IP address.')
                continue
I require the user to input an IP address. I wanted to set an error so that if he uses a letter he gets an error. How can I do that and why isn't my code working?