Answer
Output:
1
2
5
30
0
34
Work Step by Step
The code is below.
-$lst.index(1)$=1
-$lst.count(1)=2$
-$len(lst)$=5
-max(lst)=30
-min=0
-sum(lst)=34
You can help us out by revising, improving and updating this answer.
Update this answerAfter you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.