Question: You are given a list, containing integer numbers. Write a function that returns the sum of the numbers in the list, returning 0 for an

You are given a list, containing integer numbers. Write a function that returns the sum of the numbers in
the list, returning 0 for an empty list. Except the number 13 is very unlucky, so it does not count and
numbers that come after a 13 also do not count.
Examples:
If you were given list of [1,2,2,1], call sum13(mylist) should yield 6;
If you were given list of [1,2,13,1,5,-1,0,-12] call sum13(mylist) should yield 3.
Problem 12.
Write a loop that iterates over the string and prints every other letter starting from the first(first,
third, and so on).
So, if given a string Connecticut, the code will print Cnetct

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!