Python Learning
5.92K subscribers
426 photos
1 video
59 files
106 links
Python Coding resources, Cheat Sheets & Quizzes! πŸ§‘β€πŸ’»

Free courses: @bigdataspecialist

@datascience_bds
@github_repositories_bds
@coding_interview_preparation
@tech_news_bds

DMCA: @disclosure_bds

Contact: @mldatascientist
Download Telegram
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πŸ‘ˆ
πŸ‘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
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
πŸ‘4