From 0f8aab5c95b47fa87ffd8d69630b51fd2dcc6eff Mon Sep 17 00:00:00 2001 From: arpit05va <72192202+arpit05va@users.noreply.github.com> Date: Fri, 8 Oct 2021 18:48:36 +0530 Subject: [PATCH] Create o.py --- o.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 o.py 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 = " ")