Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: For loop with 2 elements. No zip
Post: RE: For loop with 2 elements. No zip

(May-03-2020, 09:23 AM)buran Wrote: (May-03-2020, 09:12 AM)amassotti Wrote: I put two interables in a loopyou don't iterate over 2 iterables, you iterate over one iterable - a tuple. Hi buran. It...
amassotti General Coding Help 10 3,726 May-03-2020, 10:34 AM
    Thread: For loop with 2 elements. No zip
Post: RE: For loop with 2 elements. No zip

First of all thanks for your replies and sorry for the absence of the code tags. So, without itertools chain if I put two interables in a loop de facto I'm not iterating inside these. Thanks once ag...
amassotti General Coding Help 10 3,726 May-03-2020, 09:12 AM
    Thread: For loop with 2 elements. No zip
Post: For loop with 2 elements. No zip

Hello everybody. I've a doubt about the for loop with two elements like this: d1 = (1,2) d2 = (3,4) for item in (d1, d2): print(item)#Output Output:(1, 2) (3, 4)Why I'm not iterating on all ele...
amassotti General Coding Help 10 3,726 May-03-2020, 07:48 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020