Lesson 52 Search In Text Files In Python

2022 14:02
Synopsis
python code

file=open('test.txt','r')
text=file.read()
index=text.find(str.lower('this'),39,100)
if index !=-1:
print ...
Download Options
Choose a download method below. All links open in new tabs.
Service Features Action
Ssvid
MP4 & MP3 • HD Quality • Browser Extension Available
Download
SaveFrom
MP4 & MP3 • HD Quality • Browser Extension Available
Download
Security Notice: These are third-party services. We recommend using antivirus software and being cautious of pop-up ads.