2. Write a python program to display all 3 digit odd numbers.
Answers
Answer:
Odd Number (3 digits) for a in range (100, 1000) if a % 2 = = 1: print b Output: 101, 103, 105, 107, .. …
Answer:- We need to write the program to display all 3 digit odd numbers. The program is as follows:-
Odd Number (3 digits)
for a in range (100, 1000)
if a % 2 = = 1;
print b;
The Output will be:-
101, 103, 105, 107,..……997, 999
Hope this will also help you:-
The program to print all the odd numbers in Python is as follows:-
# Python program to print odd Numbers in given range
start, end = 4, 19
# iterating each number in list
for num in range(start, end + 1):
# checking condition
if num % 2 != 0:
print(num, end = " ")
To know more about the above given topic please go through the following
Link1:- https://brainly.in/question/39710147?
Link2:- https://brainly.in/question/13239808?
#SPJ2