Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6223483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:29:54+00:00 2026-05-24T08:29:54+00:00

working with a big list This is my earlier post about this program which

  • 0

working with a big list This is my earlier post about this program which generates the following list. The program I am writing deals with a big linked list. This list is called phonemeList. The list is like the following:

[[('dh', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 0.35], [-1, -1]]), 

  ('ih', [[-1, -1], [-1, -1], [0.3, 1.0], [-1, -1], [0.05, 0.15], [-1,-1]]),  

  ("'", None),  

  ('k', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 0.8], [-1, -1]]), 

  ('aa', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 1.0], [-1, -1]]), 

  ('r', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 0.6], [-1, -1]]), 

  ("'", None),  

  ('p', [[-1, -1], [0.2, 1.0], [-1, -1], [-1, -1], [0.15, 0.2], [-1, -1]]), 

  ('ih', [[-1, -1], [-1, -1], [0.3, 1.0], [-1, -1], [0.05, 0.15], [-1, -1]]), 

  ("'", None), 

  ('k', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 0.8], [-1, -1]]), 

  ('iy', [[-1, -1], [-1, -1], [0.3, 1.0], [-1, -1], [0.1, 0.15], [-1, -1]]),

  ('ng', [[-1, -1], [-1, -1], [0.3, 1.0], [-1, -1], [0.09, 0.3], [-1, -1]]),

  ("'", None), 

  ('er', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 0.5], [-1, -1]]), 

  ("'", None), 

  ('sh', [[-1, -1], [-1, -1], [-1, -1], [0.3, 1.0], [-1, -1], [-1, -1]]), 

  ('eh', [[-1, -1], [-1, -1], [0.1, 0.5], [-1, -1], [0.4, 0.7], [-1, -1]]), 

  ('m', [[-1, -1], [0.2, 1.0], [-1, -1], [-1, -1], [0.15, 0.2], [-1, -1]]), 

  ("'", None), 

  ('p', [[-1, -1], [0.2, 1.0], [-1, -1], [-1, -1], [0.15, 0.2], [-1, -1]]),

  ('uw', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.5, 1.0]]), 

  ('dx', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 0.35], [-1, -1]]), 

  ("'", None), 

  ('aa', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 1.0], [-1, -1]]), 

  ("'", None), 

  ('er', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 0.5], [-1, -1]]), 

  ("'", None), ('aa', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 1.0], [-1,-1]]), 

  ("'", None), 

  ('r', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 0.6], [-1, -1]]), 

  ('iy', [[-1, -1], [-1, -1], [0.3, 1.0], [-1, -1], [0.1, 0.15], [-1, -1]]),

  ("'", None), 

  ('ih', [[-1, -1], [-1, -1], [0.3, 1.0], [-1, -1], [0.05, 0.15], [-1, -1]]),

  ('n', [[-1, -1], [-1, -1], [-1, -1], [0.3, 1.0], [-1, -1], [-1, -1]]), 

  ('t', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 0.4], [-1, -1]]), 

  ('l', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 0.6], [-1, -1]]), 

  ("'", None), ('r', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15,0.6], [-1, -1]]), 

  ('ah', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 1.0], [-1, -1]]), 

  ('k', [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [0.15, 0.8], [-1, -1]])]]

Could you kindly have a look at the link so that you have an idea about the program. Thank you. [0.15,0.6] is not a list but a range. Here it is expressed as a list which may be wrong. This means the value can vary from 0.15 to 0.6. Where as [-1,-1] is a no range thing which is not in use and can be replaced by a range of positive numbers while comparing. Now I need to compare the items of ‘dh’ with the items of ‘ih’ . The first item of ‘dh’ will be compared to first item of ‘ih’ then 2nd item to 2nd and so on. Then the items of ‘dh’ will be compared to items of ‘k’ ignoring “‘”. ‘dh’ will be compared to all following the rules. Then ‘ih’ comes into picture and the same thing is repeated. While doing this (“‘”, None), should be ignored. The ranges get changed during comparison and [-1,-1] will be replaced. The (“‘”, None) is like a boundary. After comparison of all items with one another, the next step would be to compare within these boundaries. Being a beginner this is really a complex thing for me. But this is also my main project so please help me with this. Thank you very much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:29:55+00:00Added an answer on May 24, 2026 at 8:29 am

    Honestly, sounds like you need a class, not a nested list.

    class Phoneme():
        def __init__(self,named,variables,for,every,paired,value,in,the,crazy,list,you,posted):
            self.named = named
            self.variables = variables
            ##etc
            ##This way, we can see what you're comparing. The comparisons also become much easier.
    

    Now your compares can literally just be something like:

    if phoneme1.fricative == phoneme2.fricative:
        do_something_awesome()
    

    Ah, if classes are confusing, I’d suggest you check out these links. Those 4 tutorials are fairly decent descriptions of classes. The last one is the official tutorial, start with that one. Dive into Python is another excellent example, but it’s geared towards those who already know another programming language, so if Python is your first, it might be a bit daunting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Still working my way through this program. Next task on my to-do list is
I working on a maze generator in C# which generates big mazes and then
I'm working on a program, which should list all files and it's size(for now...).
I'm working on a big Qt application with multiple widgets which are quite complex.
I want to start working on a big project. I research about performance issues
I'm working with quite a big codebase which compiles fine in linux but vc++
I'm currently working through an assignment that deals with Big-O and running times. I
I've read this post and is hasn't ended up working for me. Edit: the
I have this javascript which is working great - var employeename = $(#employeename); var
Working in Haskell, I am trying to write a big list of booleans to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.