Python Learning
Open in Telegram
Python learning resources Beginner to advanced Python guides, cheatsheets, books and projects. For data science, backend and automation. Join π https://rebrand.ly/bigdatachannels DMCA: @disclosure_bds Contact: @mldatascientist
Show more5 790
Subscribers
-124 hours
-277 days
-5730 days
Posts Archive
5 790
What is Tuple Matching in Python?
Tuple Matching in Python is a method of grouping the tuples by matching the second element in the tuples. It is achieved by using a dictionary by checking the second element in each tuple in python programming. However, we can make new tuples by taking portions of existing tuples.
Tuple Syntax
Tup = ('Jan','feb','march')
To write an empty tuple, you need to write as two parentheses containing nothing-
tup1 = ();For writing tuple for a single value, you need to include a comma, even though there is a single value. Also at the end you need to write semicolon as shown below.
Tup1 = (50,);Tuple indices begin at 0, and they can be concatenated, sliced and so on. Tuple Assignment Python has tuple assignment feature which enables you to assign more than one variable at a time. In here, we have assigned tuple 1 with the persons information like name, surname, birth year, etc. and another tuple 2 with the values in it like number (1,2,3,β¦.,7). For Example, (name, surname, birth year, favorite movie and year, profession, birthplace) = Robert
π Read Online #Python #python_3 βββββββββββββ Join @python_bds for more cool data science materials. *This channel belongs to @bigdataspecialist group
5 790
Python Programming 3 Books in 1
5 790
Python Programming
Time to deep dive into Python Programming
β° Free Online Course
π¬ video lessons
Rating βοΈ: 4.6 out 5
Students π¨βπ : 5,921
Duration β° : 1hr 55min of on-demand video
Created by π¨βπ«: Pradeep Chelani
π COURSE LINK
#python #programming
ββββββββββββββ
πJoin @python_bds for moreπ
