Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created February 22, 2021 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/68a492285f2e707302200dda5e49f234 to your computer and use it in GitHub Desktop.
Save amankharwal/68a492285f2e707302200dda5e49f234 to your computer and use it in GitHub Desktop.
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