Computer Science, asked by zicronium26, 9 months ago

Find and write the output of the following python code : Val = [20,"A",40,"K",10,"H"] Freq = 0 Sum = 0 Cat = "" for I in range(1,6,2): Freq = Freq + I Sum = Sum + Val[I-1] Cat = Cat + Val[I] + "*" print (Freq,Sum,Cat)

Answers

Answered by rishavsharma21pd1prg
1

Answer:

9     70      A*K*H*

Explanation

Answered by vishal2004sap
1

Answer:

9  70  A*K*H*

Explanation:

Freq = 1 + 3 + 5

Sum = 20 + 40 + 10

Cat = A* + K* + H*

(See the Val list if u dont understand)

Pls, Mark Brainliest !!

Similar questions