0

Searching for word and sentence in doc file.

Hey guys do you have any idea for code which: -can find all definite sentences -can print part of it which is variable. Example of what I mean: I have a text file and I want to find in it all sentences start with "Today and end with "nice" and then print a word which is after "Today", e.g. Today x is very nice." and print "x" when "x" is variable.

31st Mar 2020, 9:40 PM
Ewelina Kowalik
Ewelina Kowalik - avatar
1 ответ
+ 1
These string functions can surely help you. You can code with these. https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2456/
31st Mar 2020, 10:33 PM
你知道規則,我也是
你知道規則,我也是 - avatar