using beginner python code
Assignment # 14: Identify a correctlyformed ip address
Ip address rules:
8 bits = 28 = 256, so 0 – 255
– – – – – – – -.- – – – – – – -.- – – – – – – -.- – – – – – —
8 bits.8 bits.8 bits.8 bits
In base 10 it looks like this
0-255.0-255.0-255.0-255
Some correctly formed ip addresses:
27.123.128.44
183.81.128.189
202.170.47.250
210.7.0.1
To verify the validity of an ip address, there must be fournumbers and all the numbers must be between 0 and 255
From our textbook:
>>> str5 = ‘spam-spam-spam’
>>> delimiter = ‘-‘
>>> spamlist =
OR
OR