Created
March 20, 2021 09:22
-
-
Save Kimxons/c46f3f4d8ddf0e29a302f45dabb3ccb7 to your computer and use it in GitHub Desktop.
python strings are immutable -> they cant be changed after theyre created
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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