| | I have a list of lists containing tuples:
[[(1L,)], [(2L,)], [(3L,)], [(4L,)], [(5L,)]
how do i edit the list so the list looks like:
l = [[1][2][3][4][5]]
| contacts.remove((name,ip))
i have the ip and its unique, i want to remove this tuple from contacts according to the ip and no need to name,
i just tried this "contacts.remove((pass,ip))", but i encountered ... | alist = [[a,b,(1,2)], [a,b,(1,2)], [a,b,(1,2)]]
I want to remove the third element from all the elements in alist, or it means the last one in the elements of a list
So the result ... | this question might have similars in SO but my case is a bit different. and I tried to adapt those answers to my problem but couldn't.
so here is the thing:
I have ... | In an array I have the following tuples:
('0000233/02', 50.0, None, None, None, None, 'Yes')
('0000233/02', 200.0, None, None, None, None, 'Yes')
if im iterating through the ... | I have the following list:
[('mail', 167, datetime.datetime(2010, 9, 29)) ,
('name', 1317, datetime.datetime(2011, 12, 12)),
('mail', 1045, datetime.datetime(2010, 8, 13)),
('name', 3, datetime.datetime(2011, 11, 3))]
And I want to ... | Im using
Users = win32net.NetGroupGetUsers(IP,'none',0),
to get all the local users on a system. The output is a tuple,
(([{'name': u'Administrator'}, {'name': u'Guest'}, {'name': u'Tom'}], 3, 0),)
I want to clean this up so it ... | |
|