For Loop Dilema [python-list]
arya.kumar2494 at gmail.com
arya.kumar2494 at gmail.com
Mon Feb 26 13:28:22 EST 2018
On Monday, February 26, 2018 at 6:23:24 AM UTC+5:30, Rick Johnson wrote:
> On Sunday, February 25, 2018 at 12:19:56 PM UTC-6, arya.ku... at gmail.com wrote:
>
> > Ex:
> >
> > Names = ["Arya","Pupun"]
> >
> > for name in Names:
> > for c in name:
> > print(c)
> >
> > instead use:
> >
> > for c in name in Names:
> > print(c)
>
> Hmm. Why stop there?
>
> bit = ["kibbles"]
> bits = [bit, bit]
> bitts = [bits, bits]
> for kibbles in bit in bits in bitts:
> do_something(kibbles)
My thought exactly.. :)
More information about the Python-list
mailing list