Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Please help in understanding this piece of code
Post: RE: Please help in understanding this piece of cod...

Thanks everyone for sparing time and explaining the concept
tinkalgo Data Science 9 4,549 May-10-2018, 04:32 PM
    Thread: Please help in understanding this piece of code
Post: RE: Please help in understanding this piece of cod...

(May-10-2018, 10:46 AM)ThiefOfTime Wrote: you are building an array out of a list which is created using a list comprehension. this specific list comprehension picks each number in [2, 4, 6], one at...
tinkalgo Data Science 9 4,549 May-10-2018, 11:07 AM
    Thread: Please help in understanding this piece of code
Post: Please help in understanding this piece of code

How this code np.array([range(i, i + 3) for i in [2, 4, 6]])results in Output:array([[2, 3, 4], [4, 5, 6], [6, 7, 8]])Thanks
tinkalgo Data Science 9 4,549 May-10-2018, 10:26 AM

User Panel Messages

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