Chris Antony Correya

124 posts

Chris Antony Correya banner
Chris Antony Correya

Chris Antony Correya

@antony_chris

https://t.co/aaYYyk1win student at RSET'23🎓 | Python Developer 🐍 | Passionate about Machine Learning 🤖 | Constantly exploring new possibilities in the world of tech

Katılım Eylül 2020
407 Takip Edilen69 Takipçiler
Aesthetics 𝕏
Aesthetics 𝕏@aestheticsguyy·
Aesthetically pleasing wallpaper ☁️
Aesthetics 𝕏 tweet mediaAesthetics 𝕏 tweet media
English
532
6.9K
110.6K
30.8M
Chris Antony Correya
Chris Antony Correya@antony_chris·
4/ And to find the difference between two sets: difference_set = set1 - set2 # or use set1.difference(set2)
English
0
0
0
22
Chris Antony Correya
Chris Antony Correya@antony_chris·
Dose 16 - Sets in Python are like collections of unique elements. They're defined using curly braces or the set() constructor. For example: my_set = {1, 2, 3} 🧵 #Python #Sets #CodingCommunity
English
4
0
1
51
Chris Antony Correya
Chris Antony Correya@antony_chris·
3/ To find the intersection of two sets: intersection_set = set1 & set2 # or use set1.intersection(set2)
English
0
0
1
18
Chris Antony Correya
Chris Antony Correya@antony_chris·
2/ To find the union of two sets: set1 = {1, 2, 3} set2 = {3, 4, 5} union_set = set1 | set2 # or use set1.union(set2) # union_set is now {1, 2, 3, 4, 5}
English
0
0
0
24
Chris Antony Correya
Chris Antony Correya@antony_chris·
1/ Sets automatically remove duplicates, ensuring only unique values are stored. So, if you try to add a duplicate, it won't change the set.
English
0
0
0
35
Chris Antony Correya
Chris Antony Correya@antony_chris·
5/ 📜 Check membership with 'in'. Example: check = 2 in my_tuple # True
English
0
0
0
13
Chris Antony Correya
Chris Antony Correya@antony_chris·
2/ 📜 Slicing extracts subsets. Example: subset = my_tuple[1:3] # (2, 3)
English
1
0
0
24
Chris Antony Correya
Chris Antony Correya@antony_chris·
4/ 📜 Find element count using len(). Example: count = len(my_tuple) # 3
English
0
0
0
20
Chris Antony Correya
Chris Antony Correya@antony_chris·
3/ 📜 Concatenate tuples with "+". Example: combined_tuple = my_tuple + (4, 5) # (1, 2, 3, 4, 5)
English
0
0
0
21
Chris Antony Correya
Chris Antony Correya@antony_chris·
1/ 📜 Access elements by index (0-based). Example: first_element = my_tuple[0] # 1
English
0
0
0
32
Vasco Aires
Vasco Aires@vascoabm·
1am to 3am is when the real productivity kicks in anyone else?
English
126
13
273
29.9K
Zee Writes
Zee Writes@zee_writess·
Why do 9-5 job people hate business people, and why do business people hate 9-5 workers?😂
English
31
1
70
3.6K
Chris Antony Correya
Chris Antony Correya@antony_chris·
It's #Friday and I'm ready for a *long* weekend! Who else is ready to relax, unplug, and forget all their responsibilities for a few days? 🤩 #TGIF
English
0
0
1
34
Ankita
Ankita@TheCerebralChic·
Snapchat deleted, Instagram being kept deactivated,barely responds to WhatsApp texts what am I becoming ??
English
1.2K
329
4.4K
380K