Search Result

Collapse
14 results in 0.0017 seconds.
Keywords
Members
Tags
lists
  •  

  • Monty27
    started a topic objects not working right: attribute error

    objects not working right: attribute error

    I am completely stuck and am looking for guidance. I am creating my own version of the sets class, making the class called Set. I have created a test function as well. Everything works great until I get to the union/subtract part.
    Code:
    def intersection(self,set2):
            self.inter=Set([])
            for i in self.elements:
                for j in set2.elements:
                    if i == j:
                        self.inter
    ...
    See more | Go to post
    Last edited by bvdet; Nov 25 '11, 03:04 PM. Reason: edit comments

  • Need help converting a list of strings to a dictionary

    So I have a list of strings that I would like to convert to a dictionary. I want the keys in the dictionary to be the names of the strings and the... other part... i forget what its called, the part after the keys, to be how many times the string occures, this is part of a larger program so I won't submit all the code I have so far, but the list I want to convert is the following (There are a couple other lists aswell but I figure I can probably...
    See more | Go to post

  • IE inserts extra line when there is a link in the line.

    I have a simple HTML5 page with several Unordered Lists <UL></UL> in the page. Each list is different, and some of the UL's begin with a List Item <LI></LI> which contains a link <A></A>.

    Firefox and Chrome have no problems rendering the page. I've even simplified it from nested UL's to a simple series of single-level UL's.

    Here's a section of the code:
    Code:
    <p>Caterer</p><ul><li><a
    ...
    See more | Go to post

  • Mala7
    started a topic dimmed list/menu
    in PHP

    dimmed list/menu

    Hi

    I have two list/menu - to be specific they are car Brand menu & car model menu - in my page, what i need to do is to:
    - make the car model menu dimmed at the start
    - when a selection made to the car brand menu then the car model menu is enabled and the values in the menu should be related to the car brand choice

    can i do this with php?? and how??

    thanks
    See more | Go to post

  • Why can't I assign people to a twitter list?

    I am unable to assign people to Twitter lists. I get this error message: There is an error on the page. Is there any way to get an answer from Twitter?
    See more | Go to post

  • Amanda Ahl
    started a topic How to divide file into separate lists?

    How to divide file into separate lists?

    How can I divide a file with emails divided with headers like this:

    From: jdakl@hotmail.c om
    Sent: 7th aprill 2099
    To: hjfdaso@hotmail .com

    email text

    ...into separate lists in one big list containing the email and the header?

    the point is that im supposed to check each email for spam words and give points for each spam word... and then put the spam emails from the email file...
    See more | Go to post

  • How to Filter Multiple SharePoint Lists with Form Web Part?

    Hey Guys,

    I am not sure if there are too many SharePoint experts on here, but I figured I would ask and I would really appreciate any help.

    If there a way using a form web part to have one criteria filter multiple lists on the same screen.

    Attached is a screenshot of what I am working with.

    Here is the code I have to filter one list:

    Code:
    <br> 
    
    </br>
    ...
    See more | Go to post

  • Adding Record to a table from a form using two different tables

    I have an employee table with a basic data (Key=emp_id). The other table has tool data records. Each tool record has a key (tool_no). I want to use a form where the user selects the emplyee id and tool key from a list and create a new record in a different table. I can not seem to get the data into the new table. Thanks in advance for any suggestions.
    See more | Go to post

  • siebertp
    started a topic How to remove duplicates

    How to remove duplicates

    Hi

    I am unable to get the following code to work:
    def remove_duplicat es (strng):
    """
    >>> remove_duplicat es ('apple')
    'aple'
    >>> remove_duplicat es ('Mississippi')
    'Misp'
    >>> remove_duplicat es ('The quick brown fox jumps over the lazy dog')
    'The quick brown fx jmps v t lazy dg'
    >>> remove_duplicat es...
    See more | Go to post

  • Lura
    started a topic How to parse a list of decimal numbers in python...

    How to parse a list of decimal numbers in python...

    In an effort to learn how to work with information in files, I am writing a program that opens an already existing file containing decimal numbers. It then takes the decimals, sorts them, and returns median and mean.

    Here's what I have so far:

    Code:
    #opening file as a read only file
    f = open('testfile', 'r') 
    
    #assigns variable to string
    numbers = f.read(testfile) 
    
    #Make a list
    ...
    See more | Go to post

  • woodwardo
    started a topic Splitting lists?

    Splitting lists?

    I have this list:

    Code:
       people = [ ("JT", 150), ("TJ", 80), ("TT", 120), ("BT", 170), ("Mike", 12), \
                  ("AF", 27), ("Lea", 78), ("Leo", 180), ("Al", 55), ("GK", 110),  \
                  ("JR", 111), ("VB", 76) ]
    I'm trying to add the five lowest integers (12, 27, 55, 76, 78)...
    See more | Go to post

  • Synchronized boxes on the fritz - Can someone please help??!!

    Hello, I am having an issue with my synchronized combo boxes and don't know how to fix it.

    I have created two boxes and have made the synchronization work (the user clicks on the first box and makes a choice and the second only shows items which are related to the first box's choice).

    My problem is that the user can not choose from any of the choices in the second combo... whatever is clicked on the very first item is...
    See more | Go to post
    Last edited by NeoPa; Sep 28 '09, 07:33 PM. Reason: Please use the [CODE] tags provided.

  • afromanam
    started a topic how to change list type

    how to change list type

    Hi,

    I would like to change an html list type from say:

    { list-style-type: lower-roman }

    to

    { list-style-type: 'Note:'+lower-roman }

    so in the list we could have:

    Note 1.
    Note 2.
    Note 3.

    Instead of

    1.
    2.
    3.

    Thanks in advance and regards,

    Afromananm
    See more | Go to post

  • ulas
    started a topic Storing a series of numbers of variable length

    Storing a series of numbers of variable length

    Hi,

    I am designing a table in SQL Server 2008 which will contain, in each row, a list of numbers of variable length. The maximum (10) and minimum (2) list lengths are known. The most obvious approach seems to be just creating 10 columns (num1, num2....,num10) and making num3...num10 nullable. Is there a better way of doing this? It just seems wasteful to have so many columns that will be empty most of the time for most of the rows...
    See more | Go to post
Working...