[Tutor] Created Function, Need Argument to be a String
Joaquin Alzola
Joaquin.Alzola at lebara.com
Thu Dec 15 05:50:11 EST 2016
>-------------------------------------------
>Error from interpreter: (looks like it's taking issue with it being a
>number it doesn't know how to deal with)
>
>>>> ip_checker(169.254.0.1)
> File "<stdin>", line 1
> ip_checker(169.254.0.1)
> ^
>SyntaxError: invalid syntax
>
>-------------------------------------------
You are passing the IP as an invalid number. 169.254.0.1 as an integer or float or long doesn't exist.
I suppose you want to pass it as a String
ip_checker("169.254.0.1")
This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt.
More information about the Tutor
mailing list