<jupyter_start><jupyter_text>1. Open a file and then read the file line by line and print it as we read it<jupyter_code>with open("Alice's Adventures in Wonderland, by <NAME>", 
          encoding="utf8") as fd: 
    for line in fd: 
            print(line)<jupyter_output><empty_output><jupyter_text>2. Duplicate the same for loop, just after the first one<jupyter_code>with open("Alice's Adventures in Wonderland, by <NAME>", 
          encoding="utf8") as fd: 
    for line in fd: 
        print(line) 
    print("Ended first loop") 
    for line in fd: 
        print(line)<jupyter_output>Ended first loop
{'fraction_non_alphanumeric': 0.09523809523809523, 'fraction_numerical': 0.006568144499178982, 'mean_word_length': 3.295774647887324, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '14014', 'license': 'MIT', 'n_tokens_mistral': 208, 'n_tokens_neox': 192, 'n_words': 67, 'path': 'Chapter02/.ipynb_checkpoints/Exercise 2.10-checkpoint.ipynb', 'repo_name': 'arifmudi/The-Data-Wrangling-Workshop', 'size': '623'}