IP address convertor IP address convertor
The mission is in Reviewing Mode. You can't see the solutions Leader Board, but you can see other user solutions through the Random Review after you solve the mission.

Convert string representation of IP address into integer

Input: One string argument.

Output: Integer.


ip_address("") == 2130706433
ip_address("") == 3232235521

How it is used: Have you ever seen any computer with no internet connection?

Precondition: String representation of IP address in 'X.X.X.X' form where 0 ≤ X ≤ 255