Learn Python Programming for Ultimate Beginners
Jumpstart your Python programming career . If you are a complete beginner & want to learn Python coding from scratch
β° Free Online Course
π¬ video lessons
Rating βοΈ: 4.6 out 5
Students π¨βπ : 1,455
Duration β° : 1hr 33min of on-demand video
Created by π¨βπ«: Mazhar Hussain
π COURSE LINK
#python #programming
ββββββββββββββ
πJoin @python_bds for moreπ
Jumpstart your Python programming career . If you are a complete beginner & want to learn Python coding from scratch
β° Free Online Course
π¬ video lessons
Rating βοΈ: 4.6 out 5
Students π¨βπ : 1,455
Duration β° : 1hr 33min of on-demand video
Created by π¨βπ«: Mazhar Hussain
π COURSE LINK
#python #programming
ββββββββββββββ
πJoin @python_bds for moreπ
Udemy
Free Tutorial - Learn Python Programming for Ultimate Beginners
Jumpstart your Python programming career . If you are a complete beginner & want to learn Python coding from scratch - Free Course
π2
Comparing tuples
A comparison operator in Python can work with tuples.
The comparison starts with a first element of each tuple. If they do not compare to =,< or > then it proceed to the second element and so on.
It starts with comparing the first element from each of the tuples
Letβs study this with an example-
#case 1
#case 2
#case 3
Case1: Comparison starts with a first element of each tuple. In this case 5>1, so the output a is bigger
Case 2: Comparison starts with a first element of each tuple. In this case 5>5 which is inconclusive. So it proceeds to the next element. 6>4, so the output a is bigger
Case 3: Comparison starts with a first element of each tuple. In this case 5>6 which is false. So it goes into the else block and prints βb is bigger.β
#Python #python_3
βββββββββββββ
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
A comparison operator in Python can work with tuples.
The comparison starts with a first element of each tuple. If they do not compare to =,< or > then it proceed to the second element and so on.
It starts with comparing the first element from each of the tuples
Letβs study this with an example-
#case 1
a=(5,6)
b=(1,4)
if (a>b):print("a is bigger")
else: print("b is bigger")
#case 2
a=(5,6)
b=(5,4)
if (a>b):print("a is bigger")
else: print ("b is bigger")
#case 3
a=(5,6)
b=(6,4)
if (a>b):print("a is bigger")
else: print("b is bigger")
Case1: Comparison starts with a first element of each tuple. In this case 5>1, so the output a is bigger
Case 2: Comparison starts with a first element of each tuple. In this case 5>5 which is inconclusive. So it proceeds to the next element. 6>4, so the output a is bigger
Case 3: Comparison starts with a first element of each tuple. In this case 5>6 which is false. So it goes into the else block and prints βb is bigger.β
π Read Online
#Python #python_3
βββββββββββββ
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
Guru99
Python TUPLE β Pack, Unpack, Compare, Slicing, Delete, Key
A Python tuple is just like a list of a sequence of immutable objects. Learn Packing, Unpacking, Comparing, Slicing and Deleting of tuples with examples in this tutorial.
π4