## write a program to display all odd numbers from N to M in python?

The given task requires writing a Python program that displays all the even numbers between a given starting number 'N' and an ending number 'M'. The program should prompt the user to enter the values of N and M, and then it should iterate through all the numbers between N and M using a loop. The program should then check whether each number is even or not, and if it is, the program should print that number. An even number is a number that is exactly divisible by 2, which means that the remainder after dividing the number by 2 is 0. The output of the program would be a list of all even numbers between the given starting and ending numbers.

Here is a Python program that displays all even numbers between N and M:

`N = int(input("Enter the starting number: ")) M = int(input("Enter the ending number: ")) for i in range(N, M+1): if i % 2 == 0: print(i)`

In this program, the user is prompted to enter the starting number and ending number. The program then uses a for loop to iterate through all the numbers between N and M. The if statement inside the loop checks whether the number is even or not by using the modulus operator %. If the number is even (i.e., the remainder after dividing by 2 is 0), the number is printed.