QUESTION IMAGE
Question
question 21
6 pt
use list comprehension to add 10 (years) to each of the numbers in the age_in_years object. the returned object should be a list.
age_in_years = 10, 30, 45, 31
edit view insert format tools table
12pt paragraph b i u a t²
p 0 words
Step1: Use list comprehension
[x + 10 for x in age_in_years]
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
[20, 40, 55, 41]