Python Strings Tutorial

preview_player
Показать описание
Everything you need to know about using Strings in Python -- how to slice, filter, find, count, replace substrings, strip leading and trailing characters or punctuation, check or change case, capitalize, split, join, and much more. This tutorial teaches it all through a series of simple examples.

RELATED VIDEOS:

#Python
Рекомендации по теме
Комментарии
Автор

Awesome learning 🙏🏼 good to refresh string basics

trivikram
Автор

Hi Joe James, which IDE do you recommend for comfortable use?
I have PyScripter, PyCharm community edition, Visual Studio Code in mind.

CollosalTrollge
Автор

Great content ! If at all possible can you make a video on threads, using the Thread class and mulit threading in java

orangetree
Автор

Oh hell, this replace is getting to me, it is working me up.
Cant understand this
when i print my string which i had text replaced with, it doesnt bloody show the new value.

Okay never mind i got it, kind of like sed

>>> print(greeting.replace('hello', 'goodbye'))
goodbye
>>> print (greeting)
hello
>>> print(greeting.replace('hello', 'goodbye'))
goodbye
>>>

CollosalTrollge
Автор

Hi Joe,

>>> print(greeting)
hello
>>> print(greeting.replace('hello', 'goodbye'))
goodbye
>>> greetings2 = print(greeting.replace('hello', 'goodbye'))
goodbye
>>> print(greetings2)
None
>>>

Not sure why it says None

CollosalTrollge