×
FREE ASSISTANCE FOR THE INQUISITIVE PEOPLE
Tutorial Topics
X
softetechnologies
South Point - Class XI - Computer Science. Assignment Number 14a Use of capitalize() and split()
South Point - Class XI - Computer Science. Assignment Number 14b - Python Language
250    Dibyendu Banerjee    09/12/2020   

Write a program to input the lower and upper limits of a range of numbers (including the limits), and then print only those numbers in that range whose sum of the digits is odd.
For example, if the lower and upper limits input are 20 and 33, then the numbers that will be printed are 21, 23, 25, 27, 29, 30, 32.

softetechnologies
ll=int(input("Enter a Lower limit : "))
ul=int(input("Enter a Upper limit : "))
while(ll<=ul):
    n=ll
    s=0
    while(n>0):
        s=s+(n%10)
        n=n//10
    if(s%2==1):
        print(ll)
    ll=ll+1 
softetechnologies
South Point - Class XI - Computer Science. Assignment Number 14a Use of capitalize() and split()
softetechnologies
Author Details
Dibyendu Banerjee
Ex student of Scottish Church College. Served a Nationalised Bank for nearly 35 years. Authored novels in Bengali. Translated into Bengali novels/short stories of Leo Tolstoy, Eric Maria Remarque, D.H.Lawrence, Harold Robbins, Guy de Maupassant, Somerset Maugham and others. Also compiled collections of short stories from Africa and Third World. Interested in literature, history, music, sports and international films.
Enter New Comment
Comment History
No Comment Found Yet.
Leo Tolstoy
However diffcult life may seem, there is always something you can do, and succeed at. It matters that you don not just give up.
Leo Tolstoy
448
23.83
Today So Far
Total View (Lakh)
softetechnologies
01/01/2018     30778
28/06/2017     25550
02/08/2017     22003
26/05/2018     19717
15/05/2017     19354
06/07/2017     17901
21/04/2018     16863
01/08/2017     16539
01/07/2017     14551
25/04/2018     13617
softetechnologies