diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index fa4e754..3c29e79 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,7 @@
-
+
@@ -27,20 +27,20 @@
- {
+ "keyToString": {
+ "ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
+ "RunOnceActivity.OpenProjectViewOnStart": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "WebServerToolWindowFactoryState": "false",
+ "last_opened_file_path": "C:/Users/truno/Documents/GitHub/Telegram-IP-CALC",
+ "node.js.detected.package.eslint": "true",
+ "node.js.detected.package.tslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "node.js.selected.package.tslint": "(autodetect)",
+ "settings.editor.selected.configurable": "proofread"
}
-}]]>
+}
@@ -103,7 +103,8 @@
-
+
+
1662545492088
@@ -119,7 +120,14 @@
1662545590298
-
+
+ 1662661462393
+
+
+
+ 1662661462393
+
+
@@ -139,20 +147,21 @@
-
+
+
file://$PROJECT_DIR$/main.py
- 37
+ 45
-
+
\ No newline at end of file
diff --git a/main.py b/main.py
index 070dc0d..31c4220 100644
--- a/main.py
+++ b/main.py
@@ -26,8 +26,16 @@ def subnets(ip, prefix):
subnet1 = ipaddress.ip_network(str(list_subnet[1]), strict=False)
print('\nМаска:', subnet1.netmask, '=', prefix)
+ print()
- #for i in
+ for i in list_subnet:
+ subnet2 = ipaddress.ip_network(i, strict=False)
+ print('Network:', subnet2)
+ print('Broadcast:', subnet2.broadcast_address)
+ print('HostMin:', subnet2[1])
+ print('HostMax:', subnet2[-2])
+ print('Hosts:', len(list((subnet2.hosts()))))
+ print()
if __name__ == '__main__':