Python Zip() Function Hindi | Zip() Function with examples in Hindi

Python Zip() function – Zip() Function ka istemal ham python me list , tuple ya dict ko zip karne ke liye karte hai |

Python Zip() function in Hindi

Zip() in python ko Or Accha Samanjh ne ke liye iske A To Z example dekhte |

Zip() Function  in Hindi
Zip() Function with examples in Hindi

python Zip() function

Jab Ham Zip Function ka istemal karte hai to zip function return me iterator return karta hai joki zip object hota hai | lekin ham ise tuple ya list , dict me convert kar sakte hai |

python zip object

Example 1 :-

list_1  = ['User','Age','Salary']
list_2 =  ['Danish',17,18000]

data_return = zip(list_1,list_2)
print(data_return)

Aap Upper Diye Gye Program ko samanjh sakte hai.

Output :-

<zip object at 0x7fb9f585c688>

Aap upper Diye gye output ko dekh Sakte hai, lekin hamne print kiya to keval hame zip object return hua ham ise list me convert bhi kar sakte hai |

python zip two lists

Ab Ham Zib Object ko list me convert karte hai | let see example 2

Example 2 :-

list_1  = ['User','Age','Salary']
list_2 =  ['Danish',17,18000]

data_return = list(zip(list_1,list_2))
print(data_return)

Upper diye gye program me list funcion ka istemal kar rhe hai or list me convert kar rhe hai |

Output :-

[('User', 'Danish'), ('Age', 17), ('Salary', 18000)] 

Program me upper ouput ko dekh sakte hai ki hamne list function ka istemal karke zip ko list me convert kar rhe hai |

Ab Ham Zib Object ko tuple me convert karte hai | let see example 3

Example 3 :-

list_1  = ['User','Age','Salary']
list_2 =  ['Danish',17,18000]

data_return = tuple(zip(list_1,list_2))
print(data_return)

Upper diye gye program me zip funcion ka istemal kar rhe hai or tuple me convert kar rhe hai |

Output :-

(('User', 'Danish'), ('Age', 17), ('Salary', 18000)) 

Program me upper ouput ko dekh sakte hai ki hamne tuple function ka istemal karke zip ko tuple me convert kar rhe hai |

Zip() Function with examples in Hindi

Some Related Post

Dosto mujhe ummed hai ki aap Python zip funciton 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 |

Summary
Review Date
Reviewed Item
Zip() Function Hindi
Author Rating
51star1star1star1star1star

Danish Ali

I Am a 1st Sem BCA Student & I have Skills C, C++ ,Python, HTML,CSS, Computer & Advance Hacking & Blogger & YouTuber.

One thought on “Python Zip() Function Hindi | Zip() Function with examples in Hindi

Leave a Reply

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

error

Enjoy this blog? Please spread the word :)