Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/defang.py Secret

Created Feb 22, 2021
Embed
What would you like to do?
def ip_address(address):
new_address = ""
split_address = address.split(".")
separator = "[.]"
new_address = separator.join(split_address)
return new_address
ipaddress = ip_address("1.1.2.3")
print(ipaddress)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment