This sort of example I don't think is worth making a list comp - the code is likely to be less readable and the loop will rarely contain many elements so there's no significant benefit.