A defanged version of an IP address replaces every . with [.].
.
[.]
Return the defanged version of address.
address
address = "1.1.1.1"
"1[.]1[.]1[.]1"
address = "255.100.50.0"
"255[.]100[.]50[.]0"
`address` is a valid IPv4 address.
Topics
Implement defangIPaddr in the editor and return the answer — printing it is never graded.
defangIPaddr
Problem 54 of 1146 in the arena