B 2.5.1 Worksheet 2 Python
Instructions: Complete the following coding challenges. Remember to use the with statement for file handling to close files automatically. Handle potential FileNotFoundError exceptions. 1. Character Frequency: Write a Python program that reads a text file (e.g., "text.txt") and calculates the frequency of each character in the file (case-insensitive). Print the character frequencies to the console (e.g., "a: 10, b:...