Computer Science, asked by siya12109, 2 months ago

Q1. Write a program in python to print even numbers
from 50 to 20​

Answers

Answered by mdsadaqathossain
0

Explanation:

Given a list of numbers, write a Python program to print all even numbers in given list.

Example:

Input: list1 = [2, 7, 5, 64, 14]

Output: [2, 64, 14]

Input: list2 = [12, 14, 95, 3]

Output: [12, 14]

Answered by baisuya
1

Answer:

start, end = 20,50

for num in range(start, end + 1):  

   if num % 2 == 0:  

       print(num, end = " ")  

       

Explanation:

Similar questions