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
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()
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.