I got a list looking like this:
MyList = ("start_stop,start_stop")
This list can be as long as you can possibly imagine.
I want to search a file for every range given by the user.
if int(line.split("\t")[4] in xrange(start,stop),xrange(start,stop):
this works with the example list of 2 ranges. but I want it to work with whatever amount of ranges the user gives as input.
anyone able to help me out?
Aucun commentaire:
Enregistrer un commentaire