Skip to content

redabh-othman/Task1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Task 1 - IP address classifier

Important Note: No third party packages or libraries are allowed!

Build a command line tool that takes an IP address as input in the format: x.x.x.x/x, and print the class of the IP address.

the solution should contain the following information:

  1. IP address class (A, B, C, D, E)
  2. IP address designation (Private, Public)

References:

https://www.meridianoutpost.com/resources/articles/IP-classes.php

python main.py 127.0.0.1/24

Output: Class: X, Designation: X

python main.py 192.168.1.1/24

Output: Class: C, Designation: Private

Fork testing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%