Answered step by step
Verified Expert Solution
Question
1 Approved Answer
how can i count the number of words that have ful as a substring from a certain local text or word file and print them
how can i count the number of words that have "ful" as a substring from a certain local text or word file and print them out?!
user = ("Mat file do you want to open with open("SEX ") as f: file = f.readlines() suffix_count = for suffix in file: if suffix.endswith("dom"): sum = suffix_count =+ 1 print(sum, "Found words with 'dom ) I tried this but it's not working!
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