For Loop Dilema [python-list]

Rick Johnson rantingrickjohnson at gmail.com
Sun Feb 25 19:52:53 EST 2018


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)



More information about the Python-list mailing list