you need to find the sum of the numbers list ["3", "4", "1", "8", "- 7", "20", "85"] through for

Closed due to the fact that off-topic participants insolor , andreymal , default locale , 0xdb , kot-da-vinci Jun 13 '18 at 13:15 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • " Learning tasks are allowed as questions only on the condition that you tried to solve them yourself before asking a question . Please edit the question and indicate what caused you difficulties in solving the problem. For example, give the code you wrote, trying to solve the problem "- insolor, andreymal, default locale, 0xdb, kot-da-vinci
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    Respondents on this site put a minus and close questions if they resemble TK. Please complete the question with your own attempts to cope with the task. Thank. - Sasha Chernykh
  • 2
    @ SashaBlack question is bad, but you don’t need to spread a lie, as I have said to you many times. Speak for yourself. - jfs

1 answer 1

s = 0 seq = ["3","4","1","8","-7","20","85"] for k in map(int, seq): s += k print(s) 
  • 2
    Or so sum(map(int,seq)) :) Who is shorter? ^ _ ^ - nobody
  • @nobody you of course) he just asked to write through for - Alexander Kurmazov