Computer Science, asked by jitendrakumarp913, 4 months ago

WAP to print the even numbers within 51.Display the numbers and their

sum.​

Answers

Answered by Anonymous
2

Answer:

Python program to print even numbers in an list

Approach 1 − Using enhanced for loop. Example. list1 = [11,23,45,23,64,22,11,24] # iteration for num in list1: # check if num % 2 == 0: print(num, end = " ") ...

Approach 2 − Using filter & lambda function. Example. list1 = [11,23,45,23,64,22,11,24] # lambda exp. ...

Approach 3 − Using list comprehension. Example.

Answered by omsingh1776
0

Answer:

100 I think I hope it will help you

Similar questions