diff --git a/o.py b/o.py new file mode 100644 index 0000000..38529eb --- /dev/null +++ b/o.py @@ -0,0 +1,11 @@ +# Python program to print odd Numbers in a List + +# list of numbers +list1 = [10, 21, 4, 45, 66, 93] + +# iterating each number in list +for num in list1: + + # checking condition + if num % 2 != 0: + print(num, end = " ")