Hi all!
I have 2 pages. First page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>first page</title>
</head>
<body>
<iframe src="second_page.htm" frameborder="1" width="500" height="500" id="ifrm"...
Hi!
How can I check if some list is nested?
I have a list:
mylist = ['a', 'b', 'c']
then I make a change:
mylist[0] = ('a1', 'a2')
Now I have nested list:
[('a1', 'a2'),'b', 'c']
When I want to loop through mylist and print it, I need to check somehow if some list index is nested or not because...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.