Question: in python please Question III (30 pts): Write a program that reads in a Python source code file and counts the occurrence of each keyword
in python please
Question III (30 pts): Write a program that reads in a Python source code file and counts the occurrence of each keyword and each identifier (variables, class and method names) in the file using three dictionaries: one for keywords, one for identifiers, and one for punctuation characters. Your program should prompt the user to enter the Python source code filename. Keywords in Python programming language: False class finally is return None continue for lambda try True def from nonlocal while and del global not with as elif if or yield assert else import pass break except in raise Punctuation characters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
