+ 2
How do I remove a sentence from a file?
I started learning python.can someone put me through. How do I remove "can someone put me through ".
9 ответов
+ 2
As I know there is no way to do this by functions or methods
But you can save the file as string
then find the index and length of word you want to delete
then make a substring of that string
then clean the file
then return the string to file
+ 2
You can store content of file in string
Then type string.replace("the thing you want to delete", '')
Then format the file and put string into it
+ 1
Tnx VENOM please can you illustrate with an example.
0
I think there is a better idea
I will explain it
0
Tnx
0
You are welcome ☺️
0
This is awesome ğ
0
narayanaprasad this is awesome ,I just have problem with moving the snippet from left to right.