User Profile

Collapse

Profile Sidebar

Collapse
gsr1972
gsr1972
Last Activity: Aug 12 '09, 02:05 AM
Joined: Jul 3 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gsr1972
    replied to Help with removing sequences from list
    Help with removing sequences from list

    tried it and it works...cool
    guess have lots to learn!
    thks!
    See more | Go to post

    Leave a comment:


  • gsr1972
    started a topic Help with removing sequences from list

    Help with removing sequences from list

    hi all,
    I am trying to remove the following from mylist
    mylist=[28, 227, 28, 227, 0, 255, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 68, 187, 68, 187, 7, 248, 7, 248, 0, 0, 0, 0, 0, 0, 0, 0, 70, 185, 70, 185, 2, 253, 2, 253]

    I only want to remove the zeros that are being repeated every 8th,24th item(in bold). I tried a few methods like using filter and all it worked but it also removed the zeros which i intend to keep like the 4th...
    See more | Go to post

  • gsr1972
    replied to To remove items from a list?
    removing items from a list

    hi all,
    I am trying to remove the following from mylist
    mylist=[28, 227, 28, 227, 0, 255, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 68, 187, 68, 187, 7, 248, 7, 248, 0, 0, 0, 0, 0, 0, 0, 0, 70, 185, 70, 185, 2, 253, 2, 253]

    I only want to remove the zeros that are being repeated every 8th,24th item. I tried a few methods like using filter and all it worked but it also removed the zeros...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...