Question no 3
Take a list, say for example this one:
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
and write a program that prints out the sum of all the elements of the list that are less than 5.
I am not getting how to do it .
Question no 3
Take a list, say for example this one:
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
and write a program that prints out the sum of all the elements of the list that are less than 5.
I am not getting how to do it .
check the answer to this question - Problem in summing a list of number in for loop - #3 by Divya_OneLearn