Skip to content

Instantly share code, notes, and snippets.

@Kimxons
Created March 20, 2021 09:22
Show Gist options
  • Save Kimxons/c46f3f4d8ddf0e29a302f45dabb3ccb7 to your computer and use it in GitHub Desktop.
Save Kimxons/c46f3f4d8ddf0e29a302f45dabb3ccb7 to your computer and use it in GitHub Desktop.
python strings are immutable -> they cant be changed after theyre created
my_string = 'hi'
print(my_string)
print(my_string[0])
print(len(my_string))
print( my_string + "", "there" )#concatenation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment