String Functions (Python3)
francnstein
Posted on May 8, 2020
On my journey to learn my first language(python) I thought I would document anything that has helped me. As I get better and work on projects I will share them also.
Python contains many useful built-in functions and methods to accomplish common tasks.
join - joins a list of strings with another string as a separator.
replace - replaces one substring in a string with another.
startswith and endswith - determine if there is a substring at the start and end of a string, respectively.
To change the case of a string, you can use lower and upper.
The method split is the opposite of join, turning a string with a certain separator into a list.
Some things I am interested in.
https://linktr.ee/franczalezoriginals
Posted on May 8, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
March 18, 2024