in keyword in python

In Keyword In python Hindi – Python In keyword in Hindi

Python

Python In Keyword in Hindi :Python in keyword function in Hindi ko ham isliye istemal karte hai taki ham String ,list,tuple,dict me, in keyword ko istemal kar sake ye chack kr sake ki data hai ya nhi.

Isse Or Accha Samanjh ne ke liye iske kuch example dekhte.

Python In keyword Function In Hindi

Syntax :

if 'string name' in variable name:

Aap upper diye gye syntax ko dekh sakte hai.

in keyword in python
Python in keyword

String :- String matlab variable ke under jo string hogi wo likhi jati hai.

variable Name :- variable name Matlab check karne ke liye ki string in variable hai ya nhi.

Python in keyword In Hindi

Example :-

string_var  = "Masterprograming"         
 
if 'Masterprograming' in string_var:         # use in keyword
        print('present in string variable')
else:
        print('Not Present in string variable')

Aap dekh sakte hai hamne ek string_var variable banaya hai or us variable under ek string likhi hai. or fir ek condition lagaya hai.

Output :-

present in string variable

Aap upper Diye gye output ko dekh kar program ko samanjh sakte hai.

Example 2 :-

string_var  = "Masterprograming"         
 
if 'danish' in string_var:         # use in keyword
        print('present in string variable')
else:
        print('Not Present in string variable')

Aap dekh sakte hai hamne ek string_var variable banaya hai or us variable under ek string likhi hai. or fir ek condition lagaya hai.

Output :-

Not Present in string variable

Aap Upper Diye gye output ko dekh kar program ko samanjh sakte hai.

in keyword

Python In keyword in Hindi

Also Read This Post :

Dosto mujhe ummed hai ki aap Python In keyword with Examples in hindi ko acchi tarah se samanj gye honge agar aap ko ye post acchi lage to mere is website ko jarur follow kre or ha agar aap video bhi dekhna chahte hai to aap mere channel ko bhi subscribe kar sakte hai. channel ka link aapko home page par mil jayega |

Leave a Reply

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