<jupyter_start><jupyter_text>formatting with the  .format() method  'String here {} then also {}'.format('something1','something2')<jupyter_code>print("the string is {}".format("INSERTED"))
print(" the {} {} {} ".format("brown","quick","fox"))
print("the {1} {0} {0}".format("brown" ,"quick","fox"))
print("the  {q} {b} {f}".format(f='fox',b='brown',q='quick'))<jupyter_output>the  quick brown fox<jupyter_text>Float formatting follows "{value:width.precision f}"<jupyter_code>result = 100/777
result
print("The result was {r:2.4f}".format(r=result))
result= 104.12345
print("the result was {r:8.3f}".format(r=result))<jupyter_output>the result was  104.123<jupyter_text>f string method<jupyter_code>name= 'jose'
print('hello , his name is {}'.format(name))
print(f'hello , his name is {name}')
name = "sam "
age = 3
print(f'The name is {name} and age is = {age}')<jupyter_output>The name is sam  and age is = 3
{'fraction_non_alphanumeric': 0.20087815587266739, 'fraction_numerical': 0.03402854006586169, 'mean_word_length': 7.142857142857143, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '402161', 'license': 'MIT', 'n_tokens_mistral': 365, 'n_tokens_neox': 339, 'n_words': 79, 'path': 'python notebooks by Akshit Ostwal/.ipynb_checkpoints/string formating-checkpoint.ipynb', 'repo_name': 'AkshitOstwal/Python_Bootcamp', 'size': '911'}