<jupyter_start><jupyter_text>Immutability<jupyter_code>name ="Sam"

#name[0]='a'
name[1]
name[1:]
last_letters =name[1:]
'p' + last_letters
name=name+last_letters
name
x= 'hello world'
x = x + "it is beautiful outside"
x
 letter ='z'
letter*10
2=3
3+3
'2'+'2'
4/3
letter * 3
letter + '4'
x = 'Hello World'
x.upper
x
x.upper()
x
x = x.upper()
x.lower()
x.split()
x.split
x = 'hi this is a string'
x.split()
x.split('i')
x.split("i")
x.format()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19703389830508475, 'fraction_numerical': 0.03389830508474576, 'mean_word_length': 5.306666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '518378', 'license': 'MIT', 'n_tokens_mistral': 232, 'n_tokens_neox': 224, 'n_words': 54, 'path': 'python notebooks by Akshit Ostwal/.ipynb_checkpoints/String properties and Methods-checkpoint.ipynb', 'repo_name': 'AkshitOstwal/Python_Bootcamp', 'size': '472'}