Question: Help! Python Language! In this problem you should write a complete python program. Your program should accept a single string input from the user, which

Help! Python Language!

Help! Python Language! In this problem you should write a complete python

In this problem you should write a complete python program. Your program should accept a single string input from the user, which is supposed to be an ipv4 ID address of the form (XXX. XXX.XXX. XXX) where every should be a digit. The program you write needs to loop through this input string and do a bit of validation to see if it is formatted correctly. Your program should check whether or not the string has the following: There should be exactly 3 periods (doesn't matter where) . The third-to-last character must be either a 0, 1, or 2. The first digit of the string must NOT be a 0. If all of these conditions are met, the program should print Formatted OK). If any are not met, it should print Not formatted correctly). The only built-in strung function you are allowed to use is the isnumeric functions. You may not use count), find, index), indexof, etc. You will want to use one or more if-statements, string indexing, and a while-loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!