<reponame>nitin3685/LeetCode_Solutions
class Solution:
    def defangIPaddr(self, address: str) -> str:
        return "".join(['[.]' if char == '.' else char for char in address])

class Solution:
    def defangIPaddr(self, address: str) -> str:
        return "".join(['[.]' if char == '.' else char for char in address])