Skip to content

Commit 3d6d6f6

Browse files
committed
1108
1 parent 7c74480 commit 3d6d6f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

1001-1500/Defanging an IP Address.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Solution:
2+
def defangIPaddr(self, address: str) -> str:
3+
replace = address.replace(".", "[.]")
4+
return replace

0 commit comments

Comments
 (0)