Answered step by step
Verified Expert Solution
Question
1 Approved Answer
' ' ' Add your name here Final Script May 2 0 2 4 ' ' ' import re print ( Final Script )
Add your name here
Final Script
May
import re
print
Final Script"
with open
mem
raw",
rb
as target: # assumes that mem.raw is in the same folder as script
contents
targetread
# read the entire contents of the file
txt
re
sub
b
A
Za
z
b
contents
# strip all non alpha characters
txt
txt
lower
# convert all to lower case
txt
txt
decode
utf
# convert to simple ASCII
wordList
txt
split
# Create a list of possible words
print
len
wordList
you will add your code here, that determines the number of occurrences
of the following possible words found in the wordList
kernel encrypt fairwitness
Note: You are NOT allowed to modify any other lines in the script, except
to add your name in the comment block at the top
Note: Your code will create the variables: kernelCount, encryptCount, and fairwitnessCount
so the print statements below will print out the correct number of occurrences
print
kernelCount:
kernelCount
print
encryptCount:
encryptCount
print
fairwitnessCount:
fairwitnessCount
You will use the CYBV
FINAL
STARTER
SU
PY script and the mem.raw file provided to complete the Final. Make sure to follow the directions in the starter script exactly.
You will submit your final script along with the script output.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started