Basic String Methods in Python

Опубликовано: 06 Июнь 2026
на канале: Doug Morrow
4
0

In this video I go over basic string methods. To learn more about string methods check out:
https://www.w3schools.com/python/pyth...

Methods used in this video:
.upper() - will capitalize all values
.lower() - will lowercase all values
.capitalize() - will capitalize the value (think proper sentence format)
.find() - will find the first index position in the object (variable)
.replace() - will replace old value with new value
Example: .replace('old', 'new') - 'new' is now in place of 'old'
.format() - will add the value to the string where the {} are used.
Example: "Hello {}".format(water) = "Hello that's a nice waterbottle"

GitHub for code used in this video: https://github.com/MorrowG2/YouTube_P...

✔ Thanks to Fabian Grohs for providing an awesome thumbnail photo.
Check out his Udemy (Web Scraping with NodeJs):
https://www.udemy.com/course/nodejs-w...
Photo Source:
https://unsplash.com/photos/dMUt0X3f59Q

✔ Support Through Patreon:
https://www.patreon.com/user?u=322207...

✔ Cryptocurrency Donations:
BTC Wallet: 1A7GPJhf2KZk7gkA6rm9JgAk7QL2LymkCT
ETH Wallet: 0x21E45CA29727d2660Abb2bd044bC5a7080e07307
LTC: LgfAjitcTd9JxrdjDcYPcHn6vj9NETUfag
BAT: 0x21E45CA29727d2660Abb2bd044bC5a7080e07307
XRP: rKUenrSoRFPKDBXEYasbsNDcoZffTWG1Mb

✔ Other Places to Connect:
My Website: https://dougm.io/

I learned Python, Machine Learning, SQL and Tableau from the individuals below:

✔ Al Sweigart: https://automatetheboringstuff.com/

(Pro tip - Udemy usually has these courses for sale around $9-15 or so during holidays and roughly once a month to celebrate the month.)

✔ Tim Buchalka - Python
YouTube:    / timbuchalka  
Udemy Courses: https://www.udemy.com/course/python-t...

✔ Andrei Neagoie - Machine Learning / Python
YouTube:    / @zerotomastery  
Udemy Courses: https://www.udemy.com/course/complete...
Website: https://zerotomastery.io/

✔ Daniel Bourke - Machine Learning
YouTube:    / @mrdbourke  
Website: https://www.mrdbourke.com/

✔ Imtiaz Ahmad - SQL(PostgreSQL)
YouTube:    / @jobreadyprogrammer  
Udemy Course: https://www.udemy.com/course/master-s...

✔ Kirill Eremenko - Tableau
YouTube:    / @artofvisualization  
Udemy: https://www.udemy.com/course/tableau-...
Website: https://www.superdatascience.com/mach...