Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

do exercise number 1 and show answer step by step Lab Activity #6-More Functions

ID: 3825395 • Letter: D

Question


do exercise number 1 and show answer step by step

Lab Activity #6-More Functions eardeeEli Write a peopaes thun silak the user to ernet word tair arogan wilepes a hle that lan 2S eads is wil al finder that wtu1BA HOW MANY of the words is the fi are eidly thed that the use! Pur is Exercise Wile a pragenthat wilgoneule 1000 andn rumberslaS u! wtath are betwees N and 20aed thes write aaf the enes Eemstuni tem tentinries ln 1b"deo we wked is clasa, Eadi. Alpsinrn was explakeda a wayto find the peatest commas disor al te""mbryer. 'lknale-fahr,aleh thit.let easbmcungs. Ibskvgth cdtheiquaievioukike equal tethe usaSer of the tee dive swees of Itor.put the f

Explanation / Answer

x=0
A=input("enter the string to be searched: ")
f=open("C:UsersSDocumentscbs.txt","r")
PID_cbs=f.readlines()
for line in PID_cbs:
if A in line:
x=x+1

print x
f.close()