Notice
Recent Posts
Recent Comments
«   2024/09   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Archives
Today
In Total
관리 메뉴

A Joyful AI Research Journey🌳😊

Links to Python zip() Function 본문

🌳AI Projects: NLP & CV🍀✨/NLP Deep Dive

Links to Python zip() Function

yjyuwisely 2024. 8. 25. 07:01

Join two tuples together:

a = ("John", "Charles", "Mike")
b = ("Jenny", "Christy", "Monica")

x = zip(a, b)

#use the tuple() function to display a readable version of the result:

print(tuple(x))
(('John', 'Jenny'), ('Charles', 'Christy'), ('Mike', 'Monica'))

https://www.w3schools.com/python/ref_func_zip.asp

 

W3Schools.com

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

www.w3schools.com

 

728x90
반응형
Comments