PROGRAMMING IN PYTHON (LATEST
2026/2027 UPDATE) QUESTIONS WITH
ANSWERS | GRADE A | 100% CORRECT
AT WESTERN GOVERNORS UNIVERSITY
QUESTION 1
22.1 Lab: Convert to Seconds
Write a program that reads in hours, minutes, and seconds as input, and outputs the time in
seconds only. Correct answers
QUESTION 2
22.2 Lab: Convert from Seconds
People find it easier to read time in hours, minutes, and seconds rather than just seconds.
Write a program that reads in seconds as input and outputs the time in hours, minutes, and
seconds. Correct answers
, QUESTION 3
22.3 Lab: Pizza Party
Given the number of people attending a pizza party, output the number of needed pizzas
and total cost. For the calculation, assume that people eat 2 slices on average and each
pizza has 12 slices and costs $14.95. Correct answers