Set
Set is also one of the Data structure in python, the set is ever simple to understand, it also contains curly bracket ‘{}’, but the only thing it will not accept duplicate value which is the same values.
Let’s understand by code,
Input:
D = {20, 42, 111, 20, 434, ”uk”}
type(D)
Output:
set
Input:
D
Output:
{111, 20, 42, 434, ”uk”}‘
Input:
D[3]
Output:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-48-846febc3581b> in <module>
----> 1 D[3]
TypeError: 'set' object is not subscriptable
Thank You
We provide Classroom training on IBM Certified Data Science at Hyderabad for the individuals who believe hand-held training. We teach as per the Indian Standard Time (IST) with In-depth practical Knowledge on each topic in classroom training, 80 – 90 Hrs of Real-time practical training classes. There are different slots available on weekends or weekdays according to your choices. We are also available over the call or mail or direct interaction with the trainer for active learning.
ReplyDeleteFor any queries feel free to Call/WhatsApp us on +91-9951666670 or mail at info@innomatics.in
data science training in hyderabad
Data Science Course in Hyderabad
Thanks for posting such a Useful information.
ReplyDeleteDevOps Training
DevOps Online Training