Skip to content

Instantly share code, notes, and snippets.

@raeq
Created May 5, 2020 19:36
Show Gist options
  • Save raeq/062b438b0582eddbc785a6a3b398f8c5 to your computer and use it in GitHub Desktop.
Save raeq/062b438b0582eddbc785a6a3b398f8c5 to your computer and use it in GitHub Desktop.
mytext:str = "Hello, World!"
characters:list = list(mytext)
print(len(characters))
print(characters[7])
characters.insert(6, "-")
characters.append("!!")
print(characters)
mytext = "".join(characters)
print(mytext)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment