QuesAns Print Page – CSKC
Sign In

Search

siteicon
Q&A CBSE12A-2017-B01D #6218

Question:

Find and write the output of the following python code:

TXT   = ["20","50","30","40"]
CNT   = 3
TOTAL = 0
for C in [7,5,4,6]:
    T = TXT[CNT]
    TOTAL = float (T) + C
    print TOTAL
    CNT-=1

Answer:

47.0
35.0
54.0
26.0