Python Forum
list or dictionary manipulation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
list or dictionary manipulation
#1
So here's the skinny. I am new to python, I'm new to JavaScript. I've been writing bash scripts for a while now. So I have some knowledge but not where it needs to be to do what I want. So I'll state my question, but I'd prefer tips, what to read, where to find examples, or example codes. I'd rather not get an answer that is the full code of what I'm wanting to do. That discourages learning.

I'm trying to create a list and manipulate it through a function. So at work I have to assign tickets to a total of 8 guys. But I need an easy way to keep up with how many tickets each guy has been assigned. Not the ticket number, but just a "tally" mark for each ticket he has been assigned. I've been writing down there names and putting a tally mark each time I've assigned a ticket but that is tedious.

I'd like the code to keep up with this and when I run it, the code will tell me who is up next in line to have a ticket assigned to them. Not randomly. It needs to tell me who to assign it to by who has the least amount of tickets assigned to them. I'm not 100% sure how to go about this. Any help would be appreciated.
Reply


Messages In This Thread
list or dictionary manipulation - by dtigue - Jul-20-2017, 08:57 PM
RE: list or dictionary manipulation - by dtigue - Jul-20-2017, 09:18 PM
RE: list or dictionary manipulation - by ichabod801 - Jul-21-2017, 02:38 AM
RE: list or dictionary manipulation - by dtigue - Jul-21-2017, 03:10 PM
RE: list or dictionary manipulation - by ichabod801 - Jul-21-2017, 03:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sort a list of dictionaries by the only dictionary key Calab 2 803 Apr-29-2024, 04:38 PM
Last Post: Calab
  Dictionary in a list bashage 2 715 Dec-27-2023, 04:04 PM
Last Post: deanhystad
  filtering a list of dictionary as per given criteria jss 5 897 Dec-23-2023, 08:47 AM
Last Post: Gribouillis
  How to add list to dictionary? Kull_Khan 3 1,168 Apr-04-2023, 08:35 AM
Last Post: ClaytonMorrison
  check if element is in a list in a dictionary value ambrozote 4 2,199 May-11-2022, 06:05 PM
Last Post: deanhystad
  Dictionary from a list failed, help needed leoahum 7 2,215 Apr-28-2022, 06:59 AM
Last Post: buran
  how to assign items from a list to a dictionary CompleteNewb 3 1,763 Mar-19-2022, 01:25 AM
Last Post: deanhystad
  Python, how to manage multiple data in list or dictionary with calculations and FIFO Mikeardy 8 2,854 Dec-31-2021, 07:47 AM
Last Post: Mikeardy
  Problem in list manipulation CyKlop 6 2,501 Oct-18-2021, 09:03 AM
Last Post: DeaD_EyE
  Class-Aggregation and creating a list/dictionary IoannisDem 1 2,063 Oct-03-2021, 05:16 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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