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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run notepad ++ in python?

893


What is the purpose of __ init __?

759


What is class inheritance in python?

858


What are the optional statements that can be used inside a block in python?

839


What good is recursion?

876


How to check whether a module is installed in python?

847


How do python thread safe?

813


How to count the occurrences of a list item?

813


What is the proper way to say good bye to python?

1332


What is the interactive mode?

791


Python has something called the dictionary. Explain using an example

815


Is cython as fast as c?

845


How do you represent binary and hexadecimal numbers?

916


What is the scipy?

895


Is javascript better than python?

769