Python String methods - BeingSkilled Python Tutorials

In Python, there are numerous ways to manipulate strings (concatenating, trimming, splitting the strings) using its String methods. Since strings are immutable in Python, a new string is created after every manipulation while keeping the original string intact. 

String method What does it do?
split()  
format()  
   
   
   
   
   
   
   

 

Leave a comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.