String Methods in Python (Part 2)

preview_player
Показать описание
Python Programming: String Methods in Python (Part 2)
Topics discussed:
1. lstrip() String Method in Python.
2. rstrip() String Method in Python.
3. Programming Problems based on Strings in Python.

Music:
Axol x Alex Skrindo - You [NCS Release]

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

s = ' My name is Jaspreet '
s.rstrip('my ')
# as it a rstrip() followed by characters ('my ) it'll start checking the matching characters from the right side and will eleminate if found, since we have only the
# empy space matching from the right side, the output will be ' My name is Jaspreet'.

somanathking
Автор

Pls complete as soon as possible these are really helpful

Rishitha
Автор

11:23 I enjoy watching your video series encompassing a variety of subjects, and I am delighted to witness the commencement of your Python series. Nevertheless, while watching at 11:23, I observed an unfortunate practice that compelled me to bring it to your attention. In the code segment, you used "str" as a variable name, which happens to be a reserved keyword in Python. By doing so, the original built-in function str cannot be used in your further interesting Python project code. Consider an alternative variable name to avoid such conflicts and ensure smooth execution of your code.

sungchulyonseiackr
Автор

HW ans = ' My name is Jaspreet'

vighneshsuryavanshi
Автор

Strong method means removing white spaces in leading or trailing " Solving any problem is an art. ".strip('')

May I know why white space have not been removed and the same string message have shown. Can you brief on this example

Ayyappaswamy
Автор

Please complete it because there is no time left for exams.

suryanshgr
Автор

sir python jaldi khatam kar doo please chahye toh paid course le aao

ChandanKumar-mwoc