when I want to print the tuple with subsctiptn,it is giving an error like
print(t[1])
ypeError: ‘set’ object is not subscriptable
when I want to print the tuple with subsctiptn,it is giving an error like
print(t[1])
ypeError: ‘set’ object is not subscriptable
Hi rashmi,
I guess, t is a integer value right now, that’s why it is giving this error Object not subscriptable.
try this code :
t = (54,23,78,03, 12)
print(t[1])
This should work fine…
If you still get this error, please attach a screenshot of error,
Thanks