We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fec23d1 commit 97c0517Copy full SHA for 97c0517
python/easy/1108. Defanging an IP Address
@@ -0,0 +1,4 @@
1
+class Solution:
2
+ def defangIPaddr(self, address: str) -> str:
3
+ address_new = address.replace('.','[.]')
4
+ return address_new
0 commit comments