In a list of integers, how to subtract a number from one of the elements, if it doesnt meet a condition : <p>I have a list of integers and I want to subtract 26 from any of the elements if they are greater than 27.
For example: if one of the list elements was 32, it would return (32-26)=6 because it is greater than 27.</p>

<p>So say I had a list of integers
    list1=[4,34,56,20...]
How could I check each value in turn to see if it exceeds 27 and then subtract 26 to form a new list??</p>

<p>Thanks :)</p>
