<div dir="ltr"><font face="verdana, sans-serif">Hello I'm Vinay<br>recently I started learning python and in this process, I noticed there is a glitch in tuples.<br>I don't know whether it's a glitch or not but what I noticed is a list containing single list can identify inner list as a single element of the list whereas in tuples a tuple containing single tuple is unable to identify as a single element unless a comma is specified.<br><br># in case of lists<br>a = [[1,2,3]]<br>for i in a:<br>    print(i)   # this outputs [1,2,3]<br><br># in case of tuples<br>a = ((1,2,3))<br>for i in a:<br>    print(i)<br># outputs as<br>1<br>2<br>3<br><br># but if we specify comma<br>a = ((1,2,3),)<br>for i in a:<br>    print(i)  # this outputs (1,2,3)</font><br></div>