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-=1Answer:
41.0
32.0
15.0
94.0
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-=1Answer:
Copyright © 2020-22 CBSE CS & IP | All Rights Reseved | Home | About Us | Disclaimer | Privacy Policy | Terms and Conditions | sitemap
32
ReplyDelete