1) Write a Python program to print the odd numbers from the following list using for
loop.
List of numbers: 10, 21, 66, 93
Answers
Answered by
7
Answer:
# Python program to print odd Numbers in a List
# list of numbers
list1 = [10, 21, 66, 93]
# iterating each number in list
for num in list1:
# checking condition
if num % 2 != 0:
print(num, end = " ")
output
21 93
Answered by
9
Similar questions