Question: 1a) Write a PYTHON program that asks a user to enter their marks. When the user is done entering marks, they will enter -1. Output

1a) Write a PYTHON program that asks a user to enter their marks. When the

user is done entering marks, they will enter -1.

Output the average of their marks.

1b) Write a PYTHON program that calculates the average temperature.

Example Input:

Enter the temperature: -14.3

Enter the temperature: 34

Enter the temperature: -6

Enter the temperature: Done

Output:

The average temperature is 4.6 degrees Celsius.

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!