Program to read data from a file and remove the multiple spaces with a single space .

preview_player
Показать описание
In this video, you will understand the

Plz Like | Share | Subscribe the channel for more updates.

For other videos, check my playlist
Рекомендации по теме
Комментарии
Автор

Thank u so much maam for clearing the concept with the help of questions which benifits us the most. Thanks a lot🙏😊😊

subhamdas
Автор

Mam Aap file close karna bhul gaye ho...
Every time close( ) our files

hafizali
Автор

Nice explanation madam. I understood clearly now about split and join functions.

vyshuvlogs
Автор

Cant we do this replacement in same file?

GuruJi_IIT_wale
Автор

Why don't we use f.close and f1.close to close the file in the function programs.

ritikanand
Автор

these questions can be asked in the board exam, right

AbhaySingh-nixt
Автор

Mam, in this program shall I use
data= f.readlines()
x=data.split()
for word in x:

After this what is the code mam?

viswaraje
Автор

Mum when will the CBSE issue the sample paper of 20 21–22

alwayslolling
Автор

Ma'am in this ques, can we use strip() function? It also removes trailing spaces from both sides of text
Similarly lstrip and rstrip would work?

sauravdhanani
Автор

Mam pls tell me ki ye sare question ke karne karne baad kuch bhi krna h pls reply mam

khushiigupta
Автор

Last m 2 last wala bhi likhna hai print or removespace

hindumuslim
Автор

Thank you for your informative video but I have an issue I can't seem to find a solution for anywhere. Everyone makes videos on how to remove spaces in text files with Python but no one makes videos on how to ADD spaces to text files. I am using OCR to make bulk text. After OCR I get text with no spaces and special characters instead of the correct numbers. An example being:



There is far too much text for me to add the spaces by hand. What I need is to add the spaces correctly with the special characters marked for manual editing. I am looking for the result to be something like this:

This is a that has no spaces between the words.

In this way I can add the proper values where the markers are by inserting them manually. Hopefully the code can add all the spaces between the words. Can this even be done?

DGA
Автор

Thankyou so much mam your all video series of python are awesome to handle many type of ques, you made this topic easy for me thankyou so much mam for all this

anushasingh
Автор

Nice explaination 😍😍 ma'am thank you so much 😃😃

anshikhajaiswara
Автор

Ma'am we also have to close the file !??

AkashDixitShorts
Автор

Suppose we have bullet points with haphazard white spaces. If I use above program it'll remove white spaces, but it also outputs everything in one line. Can this be avoided please kindly let me know..

yellowdragon
visit shbcf.ru