Python Chapters

In a town, the percentage of men is 52. The percentage of total literacy is 48. If total percentage of literate men is 35 of the total population, write a program to find the total number of illiterate men and women if the population of the town is 80,000.

Structure of Python Program - Overview
Pop = 80000

Pop_Men = (52 * Pop) / 100

Pop_Women = Pop - Pop_Men

Pop_Lit = (48 * Pop) / 100

Lit_Men = (35 * Pop) / 100

Lit_Women = Pop_Lit - Lit_Men

Illit_Men = Pop_Men - Lit_Men

Illit_Women = Pop_Women - Lit_Women

print "\t\t\t\tDATA"
print "_______________________________________________\n"
print "Total Population of City            :\t" , Pop
print "Total Population of Men             :\t" , Pop_Men
print "Total Population of Women           :\t" , Pop_Women
print "Literate Population of Men          :\t" , Lit_Men
print "Literate Population of Women        :\t" , Lit_Women
print "Illiterate Ppopulation of Men       :\t" , Illit_Men
print "Illiterate Population of Women      :\t" , Illit_Women

Output :
DATA
_______________________________________________

Total Population of City : 80000
Total Population of Men : 41600
Total Population of Women : 38400
Literate Population of Men : 28000
Literate Population of Women : 10400
Illiterate Ppopulation of Men : 13600
Illiterate Population of Women : 28000

Leave a comment
Recent Comments
No Comments