Find and write the output of the following python code
TXT= ["20", "50", "30","40" ]
CNT=3
TOTAL=0
for c in the (7,5,4,6):
T = TXT(CNT)
TOTAL= float(T) +C
CNT =-1
Answers
Answered by
4
Answer:
No output will be generated as there is no print command
for loop syntax is incorrect
Output is 49 46.0 -1
Also if CNT = CNT - 1 then
Output is
20 26.0 - 1
Attachments:
Similar questions