QuesAns Print Page – CSKC
Sign In

Search

siteicon
Q&A CBSE12D-2017-B01D #6397

Question:

Find and write the output of the following Python code:

STR = ["90","10","30","40"]
COUNT = 3
SUM = 0
for I in [1,2,5,4]:
    S = STR[COUNT]
    SUM = float (S)+I
    print SUM
    COUNT-=1

Answer:

41.0
32.0
15.0
94.0