> >>> x = [[1, 2], [3, 4]] > > >>> for x in x: > > ... for x in x: > > ... print(x) > This is valid in the syntax level in python. But it is only good for those writing obscure programs in my opinions at most team works. -- https://mail.python.org/mailman/listinfo/python-list
- Re: Explanation of this Python langu... Steven D'Aprano
- Re: Explanation of this Python l... Chris Angelico
- Re: Explanation of this Python l... Marko Rauhamaa
- Re: Explanation of this Python langu... Ian Kelly
- Re: Explanation of this Python l... Mark Lawrence
- Re: Explanation of this Python l... Marko Rauhamaa
- Re: Explanation of this Python l... Rustom Mody
- Re: Explanation of this Python langu... Marko Rauhamaa
- Re: Explanation of this Python langu... Mark Lawrence
- Re: Explanation of this Python langu... Rustom Mody
- Re: Explanation of this Python language f... 88888 Dihedral
- Re: Explanation of this Python language feature? [x for x ... vasudevram
- Re: Explanation of this Python language feature? [x f... Mark H Harris
- Re: Explanation of this Python language feature? [x for x ... Dan Stromberg
- How to flatten a list of lists was (Explanation of this Py... Mark H Harris
- To flatten a nested list was (Explanation of this Python l... Mark H Harris
- Re: To flatten a nested list was (Explanation of this... Steven D'Aprano
- Re: To flatten a nested list was (Explanation of ... Mark H Harris