Question: 2. Write a program called my odd_sum.py to compute the sum of all odd numbers in a given range. Here's part of the code:

 2. Write a program called my odd_sum.py to compute the sum of  

2. Write a program called my odd_sum.py to compute the sum of all odd numbers in a given range. Here's part of the code: m = 10 n = 20 #Write code to add up the odd numbers between m and n inclusive WRITE YOUR CODE HERE When m-10, and n-20, you should get 75 Then test out your code by changing m to m-100 and n to n-150. What do you get?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!