Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 21 6 pt use list comprehension to add 10 (years) to each of th…

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

Explanation:

Step1: Use list comprehension

[x + 10 for x in age_in_years]

Answer:

[20, 40, 55, 41]