Question: Write a program in PYTHON that asks user for a number from 1 to 200. Let's say the number you provide is 10 a. Your

Write a program in PYTHON that asks user for a number from 1 to 200.

Let's say the number you provide is 10

a. Your program should produce the sum of the first 10 numbers

b. Your program should also sum the first 10 odd numbers (1+3+5+7+9+11+13+15+17+19)

c. Your program should work for any number from 1 to 200

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 Databases Questions!