Question: 1 . Create a Python program file called Ch 1 0 - 1 _ Name.py . ( Replace Name with your initial of first name
Create a Python program file called ChName.pyReplace Name with your initial of first name and first letters of last name. If your last name is shorter than letters, just use full last name, it doesn't have to be letters. ie if your name is John Doe, your file name should be ChJDoe.py
Your program will take a file name from user and find out occurrences of characters only alpha numeric characters, no special characters should be included in the file. Upper and lower characters need to be counted as same characters for this assignment.You need to use Python Dictionary and tuples for this assignment. Your output should be sorted ascending order of frequencies. Do not use "Read" method to read the entire file in
If user enters wrong information wrong name of the file or nonexisting file name your program needs to display message and ask for correct input. Your program should not generate traceback message with any input.
Your program's output should be exactly same or very close to the sample output provided. Output should be formatted to match the sample output provided or points will be deducted up to points
OUTPUT:
RESTART: C:JasonPCCPythonchpy
Please enter file name to process: sampletxt
bmvxygwcdfuprsinahltoe
Do you want to try another file? y or ny
Please enter file name to process: Chdatatxt
xvybckpgfmwdlrhusianote
Do you want to try another file? y or nn
Thank you for playing.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
