Python Learning
5.92K subscribers
456 photos
1 video
65 files
109 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
Deleting Tuples

Tuples are immutable and cannot be deleted. You cannot delete or remove items from a tuple. But deleting tuple entirely is possible by using the keyword

del

Slicing of Tuple

To fetch specific sets of sub-elements from tuple or list, we use this unique function called slicing. Slicing is not only applicable to tuple but also for array and list.

x = ("a", "b","c", "d", "e")
print(x[2:4])


The output of this code will be (ā€˜c’, ā€˜d’).

šŸ”— Read Online

#Python #python_3
āž–āž–āž–āž–āž–āž–āž–āž–āž–āž–āž–āž–āž–
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
Forwarded from Free programming books
Please open Telegram to view this post
VIEW IN TELEGRAM