Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: List joining
Post: RE: List joining

(Dec-20-2022, 11:40 PM)deanhystad Wrote: baskets in my example is a list of lists. In your example it is a list of strings. OHHH .... MY .... GOSH!!!! So freaking simple! Thank you so much for al...
deatz Homework 14 3,239 Dec-21-2022, 03:34 AM
    Thread: List joining
Post: RE: List joining

(Dec-15-2022, 04:16 PM)deanhystad Wrote: from itertools import cycle baskets = [] items = [] while basket := input("Basket: "): baskets.append([basket]) while item := input("Items: "): ...
deatz Homework 14 3,239 Dec-20-2022, 04:18 PM
    Thread: List joining
Post: RE: List joining

(Dec-15-2022, 04:16 PM)deanhystad Wrote: from itertools import cycle baskets = [] items = [] while basket := input("Basket: "): baskets.append([basket]) while item := input("Items: "): ...
deatz Homework 14 3,239 Dec-15-2022, 04:47 PM
    Thread: List joining
Post: RE: List joining

(Dec-08-2022, 01:42 AM)deanhystad Wrote: Just in case it wasn't clear before. "# And then magic happened. POOF!" is a place holder for some missing Python code. You did not insert the required cod...
deatz Homework 14 3,239 Dec-15-2022, 01:00 PM
    Thread: List joining
Post: RE: List joining

from itertools import cycle baskets = [] items = []   while basket := input("Basket: "):     baskets.append([basket])   while item := input("Items: "):     items.append(item)   # Poof! Magic happens! ...
deatz Homework 14 3,239 Dec-08-2022, 12:27 AM
    Thread: List joining
Post: RE: List joining

Wow, so much less code than I had so far even. Is there a way to produce the output as only Output:[('a', '1', '4'), ('b', '2', '5'), ('c', '3', '6')]or will I have to pull that separately. Just fo...
deatz Homework 14 3,239 Dec-07-2022, 05:28 PM
    Thread: List joining
Post: RE: List joining

(Dec-05-2022, 08:48 PM)deanhystad Wrote: Looks like you want the task list to be: a, b, c, a, b, c, a, b, c, a If there was just some kind of ITERATOR TOOL that would CYCLE through a list for as lon...
deatz Homework 14 3,239 Dec-06-2022, 12:54 AM
    Thread: List joining
Post: List joining

Good day, I have searched and read and tried options for days... I know it must be simple, yet here I am. I am creating a list from two user input lists; list_a is a set of tasks that may change fro...
deatz Homework 14 3,239 Dec-05-2022, 07:50 PM

User Panel Messages

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