Python Forum
Add items from one list to list of lists
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add items from one list to list of lists
#3
Hello,

At first, thank you for the edit from the moderator, I had not found how to present it, now I know. Thanks again.

For the letters, thank you. I'm a beginner, I knew that but as it was just an example I've believed it was ok. Sorry, I've noticed and I'll don't do that again.

Now, about the solution, I thank you. Can you give me an explanation with it please ? I search to understand everything.

For what I see, you've added a star in front of item ; is that the way to do what I want ? Have you a link where it's teaching and can you write the long version to help my comprehension ?

On Internet, I can't find an explanation (I've read all the tutorial section on Python documentation, maybe I've jumped something). Item isn't a method which gives a dictionnary ?

Here item is just a word (I've tried your code changing item to be sure), but it a function too no ?

Sorry for my lack of knowledge.
Reply


Messages In This Thread
RE: Add items from one list to list of lists - by PUP280 - Mar-28-2020, 08:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Strange behavior list of list mmhmjanssen 2 200 May-01-2024, 07:16 AM
Last Post: Gribouillis
  How to parse and group hierarchical list items from an unindented string in Python? ann23fr 0 221 Mar-27-2024, 01:16 PM
Last Post: ann23fr
  No matter what I do I get back "List indices must be integers or slices, not list" Radical 4 1,230 Sep-24-2023, 05:03 AM
Last Post: deanhystad
  Why do I have to repeat items in list slices in order to make this work? Pythonica 7 1,384 May-22-2023, 10:39 PM
Last Post: ICanIBB
  Delete strings from a list to create a new only number list Dvdscot 8 1,587 May-01-2023, 09:06 PM
Last Post: deanhystad
  List all possibilities of a nested-list by flattened lists sparkt 1 945 Feb-23-2023, 02:21 PM
Last Post: sparkt
  Finding combinations of list of items (30 or so) LynnS 1 894 Jan-25-2023, 02:57 PM
Last Post: deanhystad
  user input values into list of lists tauros73 3 1,095 Dec-29-2022, 05:54 PM
Last Post: deanhystad
  returning a List of Lists nafshar 3 1,111 Oct-28-2022, 06:28 PM
Last Post: deanhystad
  Сheck if an element from a list is in another list that contains a namedtuple elnk 8 1,885 Oct-26-2022, 04:03 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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