INSS 250
1. Use the variables k and total to write a while loop that computes the sum of the squares of the first 50 counting numbers, and associates that value with total. Thus your code should associate 1*1 + 2*2 + 3*3 +... + 49*49 + 50*50 with total. Use no variables other than k and total.
2. Same as question one, but only total squares that are even in your loop.
3. Same as question one, but only total squares that are odd.
4. Write a program that prompts a user for their age. Once received, check if it is odd or even. If even, output their year of birth. If odd, output the phrase "You are an odd one!"
NEED THURSDAY! If you are not familiar with python in INSS 250, This assignment is not for you! Thank you willing to negotiate!
7 years ago
20
Purchase the answer to view it

- PythonAssignment.zip