Course Solutions Uncategorized (Solved) : Please Use Python Identify Correctly Formed Ip Address Ip Address Rules 8 Bits 28 256 0 25 Q32989486 . . . .

(Solved) : Please Use Python Identify Correctly Formed Ip Address Ip Address Rules 8 Bits 28 256 0 25 Q32989486 . . . .

 

PLEASE USE PYTHON

Identify a correctly formed 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 = str5.split(delimiter)

>>> print (spamlist)

[‘spam’,

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post