3. You want to write a Python program to compute the average of three integer quiz grades for a single student. Decide what variables your program needs, and create them with appropriate initial...

1 answer below »

3. You want to write a Python program to compute the average of three integer quiz grades for a single student. Decide what variables your program needs, and create them with appropriate initial values.

4. Write Python statements to prompt for an collect values for the time in hours and minutes (two integer quantities).

5. The variables age and weight currently have the values 32 and 187, respectively. Write the exact output generated by the following statement:


print("Your age is" + str(age)\

+"and your weight is"\

+str(weight))


6. What is the output after the following sequence of statements is executed?


a = 12

b = 20

b = b + 1

a = a + b

print(2*a)


7. Given the statement:


myList = ["eeny", "meeny", "miny",\

"moe"]


what Python statement would output "miny"



Answered Same DayDec 24, 2021

Answer To: 3. You want to write a Python program to compute the average of three integer quiz grades for a...

David answered on Dec 24 2021
114 Votes
3. You want to write a Python program to compute the average of three integer quiz grades for a single student.
Decide what variables your program needs, and create them with appropriate initial values.
#!/bin/python
grades=(10,20,30)
sum=sum(grades)
avg=sum/len(grades)
print "average=",avg
4. Write Python statements to prompt for an collect...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here