Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to remove spaces from a string in Python?

Answers were Sorted based on User's Feedback



How to remove spaces from a string in Python?..

Answer / nashiinformaticssolutions

Python's strip() and replace() functions can be used to eliminate spaces from a string. The replace() function eliminates all of the white spaces in the string, while the strip() function eliminates the leading and following white spaces.

Is This Answer Correct ?    0 Yes 0 No

How to remove spaces from a string in Python?..

Answer / glibwaresoftsolutions

Python's strip() and replace() functions can be used to eliminate spaces from a string. The replace() function eliminates all of the white spaces in the string, while the strip() function eliminates the leading and following white spaces.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Name the function which helps to change the files permission

0 Answers  


What is the purpose of bytes() in python?

0 Answers  


What objects are iterable in python?

0 Answers  


How do you invoke the python interpreter for interactive use?

0 Answers  


Tell me is there a switch or case statement in python?

0 Answers  


What are the differences between the threading and multiprocessing in python?

0 Answers  


What is the difference between abs () and fabs ()?

0 Answers  


How to exit python script in command prompt?

0 Answers  


What is keyword arguments in python?

0 Answers  


What is list comprehension and dictionary comprehension and why we use it?

0 Answers  


What is the use of map in python?

0 Answers  


What is GIL? What does it do?Talk to me about the GIL. How does it impact concurrency in Python? What kinds of applications does it impact more than others?

0 Answers  


Categories