Python Strings: Replace, Join, Split, Reverse, Uppercase & Lowercase In Hindi (Python Tutorial 4)

preview_player
Показать описание
Python Strings: Replace, Join, Split, Reverse, Uppercase & Lowercase In Hindi (Python Tutorial 4)

In Python everything is object and string are an object too. Python string can be created simply by enclosing characters in the double quote.

n this tutorial, we will learn -

Accessing Values in Strings
Various String Operators
Some more examples
Python String replace() Method
Changing upper and lower case strings
Using "join" function for the string
Reversing String
Split Strings

Accessing Values in Strings
Python does not support a character type, these are treated as strings of length one, also considered as substring.

We use square brackets for slicing along with the index or indices to obtain a substring.

Various String Operators
There are various string operators that can be used in different ways like concatenating different string.
Expert Computest Dhruv Chaudhary
Python String replace() Method
The method replace() returns a copy of the string in which the values of old string have been replaced with the new value.

Changing upper and lower case strings
In Python, you can even change the string to upper case or lower case.

Likewise, you can also do for other function as well like capitalize
You can also convert your string to lower case

Using "join" function for the string
The join function is a more flexible way for concatenating string. With join function, you can add any character into the string.
Expert Computest Dhruv Chaudhary
For example, if you want to add a colon (:) after every character in the string "Python" you can use the following code.

Reversing String
By using the reverse function, you can reverse the string. For example, if we have string "12345" and then if you apply the code for the reverse function as shown below.

Split Strings
Expert Computest Dhruv Chaudhary
Important Note:

In Python, Strings are immutable.

Queries Solved on This Video.....
Accessing Values in Strings
Various String Operators
Python String replace() Method
Changing upper and lower case strings
Using "join" function for the string
Reversing String
Split Strings

=====================Notice===========================
This video does not broke any Community Guidelines of Your YouTube Policies.
So Please does not give any Strike! Please!!!!!!!!!!!!
Also I make this Video Myself....
So Please does not give any Copyright Strike!!! Please!!!!

Education Purpose Only!!!!!

If you want to This, Please first inform through Comment....
======================================================

Thanks For Watching My Video.....
Please Subscribe My Channel....
And Hit The Bell Icon....
Please Like This Video......
And Comment....
Thanks
~Expert Computest Dhruv Chaudhary
Рекомендации по теме
visit shbcf.ru