Suppose I have the following list:
['id-1213fsr53', 'WAITING', '54-81-24-40', 'world', 'id-343252sfsg', 'WAITING', '54-41-06-143', 'hello']
the list can be subdivided into tuples in the following format:
(id, status, ip-address, name)
So, in other to check the status, I need to iterate over that list by those 4 element tuples, like:
for s in status:
(id, status, ip-address, name) = s # (s is a 4 element list)
# increment s by 4, and continue the loop
How can I achieve such behavior in python
?