6 kyu

IPv4 subnet to list

112zimo

Description:

Task

Generate a sorted list of all possible IP addresses in a network.

For a subnet that is not a valid IPv4 network return None.

Examples

ipsubnet2list("192.168.1.0/31") == ["192.168.1.0", "192.168.1.1"]
ipsubnet2list("213.256.46.160/28") == None
Networks
Fundamentals

More By Author:

Check out these other kata created by zimo

Stats:

CreatedAug 1, 2017
PublishedAug 17, 2017
Warriors Trained330
Total Skips3
Total Code Submissions532
Total Times Completed112
Python Completions112
Total Stars10
% of votes with a positive feedback rating74% of 42
Total "Very Satisfied" Votes26
Total "Somewhat Satisfied" Votes10
Total "Not Satisfied" Votes5
Total Rank Assessments3
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • zimo Avatar
  • Voile Avatar
  • FArekkusu Avatar
  • user9644768 Avatar
Ad