How does rolling two d20 and taking the higher affect the average outcome?

D&D 5E has an “advantage” concept where instead of rolling 1d20, you roll 2d20 and take the higher. Likewise, disadvantage means rolling 2d20 and taking the lower.

How does this affect the expected average outcome of the roll?