String In Hindi – Python String in Hindi

Python

Python String in Hindi :- Python String Ko Ham Double Or Single quotes (” “) Me Close karte hai | String ka Istemal Har Programming Language Me Hota Hai |

String In Python Hindi

String in python

What is String in hindi ?

String ek data type hota hai Collection of Character String python me us time istemal karte hai jahah pr Hame ek se jyada character use karne padte hai.

For Example :- “Master programming”

String ko understand karne ke liye ham kuch example se samnjte hai |

Example :

Name = "Masterprogramming"      #string 
print(Name)

Output

Mastrprogramming

String Concatenation in Python

Python String Concatenation two string ko add karna hota hai . ye string concatenation kahlata hai.

Example

first_name = Master"                       #string
last_name = "Programming"                  #string

#add two string
full_name = first_name + last_name

print(full_name)

String Ouput

MasterProgramming

Ye to hua string ka example :

Str() Function in hindi

Python String me number ko use karne ke liye aapko Str() Function ka use karna padta hai. lekin ham isse example ke sath dekhte hai.

How to use str() function

Example

a = "masterprogramming"
print(a + str('3'))    # use str function

Output

masterprogramming3

Python String in Hindi

Also Read This Post :

Leave a Reply

Your email address will not be published. Required fields are marked *