Question: Write a program in python 3.6 that calculates the sum below using only one loop only. Sum= (1+2) 2 +(2+3) 2 +....+(98+99) 2 +(99+100) 2

Write a program in python 3.6 that calculates the sum below using only one loop only.

Sum= (1+2)2+(2+3)2 +....+(98+99)2 +(99+100)2. No spacing

Write a function in python 3.6 named max that accepts three integer values as arguments and returns the value that is the greatest of the three. For example, if 11, 7 and 5 are passed as arguments to the function, the function should return 11.

lastly, write a program in python 3.6, that prompts the user for positive integers (assume the user doesnt know the total number of positive integers to enter, and then calculates the sum and average of all those integers in addition, keeps a count of how many of those integers are even, and how many of them are odd. Please, there shoudn't be any erros and indented errors please.

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!