Question: Q 1 ) using for loop and range function, write a program that calculate the sum of all odd digits from 1 to the input
Q using for loop and range function, write a program that calculate the sum of all odd digits from to the input given by the user. For example, if the input is the output would be As bellow:
Q There are people in a town whose population increases by each year. Write a while loop that displays the annual population and determines how many years it will take for the population to surpass a population projected given by the user as input. hint populationpopulationpopulation
The output should be as below:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
