primeiro commit

This commit is contained in:
Fernando Luiz de Lima
2026-03-27 21:02:23 -03:00
commit 4409890ceb
7 changed files with 121 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
def validar_ip(ip : str) -> bool:
octetos = ip.split(".")
if len(octeto) != 4:
return False
for octeto in octeto:
if int(octeto < 0 or int(octeto) > 255):
return False
return True