Python Forum
Help me understand a simple list comprehension
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help me understand a simple list comprehension
#5
Thanks buran, for the additional information you provided...very helpful (and interesting to learn) indeed!

Your explanation brings up another question/clarification though i.e. when would I use one, over the other i.e. numpy ndarray object vs python list object?

Thanks also for clarifying re. the 2D array. I realize that there is no depth (3rd dimension) involved.
Reply


Messages In This Thread
RE: Help me understand a simple list comprehension - by PiPy - Oct-17-2018, 02:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  List comprehension: paul18fr 1 1,405 Oct-29-2021, 05:36 PM
Last Post: Yoriz
  list comprehension invalid syntax mcgrim 1 4,760 Jun-12-2019, 08:28 PM
Last Post: Yoriz
  Python List Comprehension. rinu 3 3,105 Jan-08-2019, 12:30 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

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