WGU D335 Python Programming Exam Solutions 2025/2026
Study online at https://quizlet.com/_hd12og
1. Student Identifi- A 9-digit unformatted integer input representing a student's ID.
cation Number
2. Formatted Stu- The output format for the student ID is <ssn>.
dent ID Output
3. Input Validation The student ID must be between 100000000 and 999999999.
for Student ID
4. Formatted ID The formatted ID is constructed using parts derived from the student ID.
Construction
5. Predefined List A list containing the values [4, -27, 15, 33, -10].
6. Boolean Value Indicates whether the input value is greater than the maximum value from pre-
Output def_list.
7. Max Value Calcu- The maximum value from predef_list is calculated using the max() function.
lation
8. Frameworks List A list of web frameworks: ['Django', 'Flask', 'CherryPy', 'Bottle', 'Web2Py', 'Turbo-
Gears'].
9. Index Value In- An integer input representing the index of a string element in the frameworks list.
put
10. Exception Han- A try block that raises an 'Error' for incompatible integer inputs.
dling
11. Water Tempera- An integer input representing water temperature in degrees Fahrenheit.
ture Input
12. Water State De- Describes the state of water based on temperature ranges.
scription
, WGU D335 Python Programming Exam Solutions 2025/2026
Study online at https://quizlet.com/_hd12og
13. Frozen Water Water is 'Frozen' if the temperature is below 33° F.
State
14. Cold Water State Water is 'Cold' if the temperature is between 33° F and 80° F.
15. Warm Water Water is 'Warm' if the temperature is between 80° F and 115° F.
State
16. Hot Water State Water is 'Hot' if the temperature is between 115° F and 211° F.
17. Boiling Water Water is 'Boiling' if the temperature is greater than or equal to 212° F.
State
18. water_state Describes the state of water based on temperature.
19. optional_safe- Safety comment displayed based on specific water temperatures.
ty_comment
20. temperature The current temperature of the water.
21. Frozen State of water when temperature is less than 33° F.
22. Cold State of water when temperature is between 33° F and 80° F.
23. Warm State of water when temperature is between 80° F and 115° F.
24. Hot State of water when temperature is between 115° F and 212° F.
25. Boiling State of water when temperature is 212° F or higher.
26. Caution: Hot! Safety comment displayed when water temperature is exactly 212° F.
27. Watch out for ice! Safety comment displayed when water temperature is less than 33° F.
28. Reverse Binary Representing an integer in reverse binary by outputting remainders of division by
2.
Study online at https://quizlet.com/_hd12og
1. Student Identifi- A 9-digit unformatted integer input representing a student's ID.
cation Number
2. Formatted Stu- The output format for the student ID is <ssn>.
dent ID Output
3. Input Validation The student ID must be between 100000000 and 999999999.
for Student ID
4. Formatted ID The formatted ID is constructed using parts derived from the student ID.
Construction
5. Predefined List A list containing the values [4, -27, 15, 33, -10].
6. Boolean Value Indicates whether the input value is greater than the maximum value from pre-
Output def_list.
7. Max Value Calcu- The maximum value from predef_list is calculated using the max() function.
lation
8. Frameworks List A list of web frameworks: ['Django', 'Flask', 'CherryPy', 'Bottle', 'Web2Py', 'Turbo-
Gears'].
9. Index Value In- An integer input representing the index of a string element in the frameworks list.
put
10. Exception Han- A try block that raises an 'Error' for incompatible integer inputs.
dling
11. Water Tempera- An integer input representing water temperature in degrees Fahrenheit.
ture Input
12. Water State De- Describes the state of water based on temperature ranges.
scription
, WGU D335 Python Programming Exam Solutions 2025/2026
Study online at https://quizlet.com/_hd12og
13. Frozen Water Water is 'Frozen' if the temperature is below 33° F.
State
14. Cold Water State Water is 'Cold' if the temperature is between 33° F and 80° F.
15. Warm Water Water is 'Warm' if the temperature is between 80° F and 115° F.
State
16. Hot Water State Water is 'Hot' if the temperature is between 115° F and 211° F.
17. Boiling Water Water is 'Boiling' if the temperature is greater than or equal to 212° F.
State
18. water_state Describes the state of water based on temperature.
19. optional_safe- Safety comment displayed based on specific water temperatures.
ty_comment
20. temperature The current temperature of the water.
21. Frozen State of water when temperature is less than 33° F.
22. Cold State of water when temperature is between 33° F and 80° F.
23. Warm State of water when temperature is between 80° F and 115° F.
24. Hot State of water when temperature is between 115° F and 212° F.
25. Boiling State of water when temperature is 212° F or higher.
26. Caution: Hot! Safety comment displayed when water temperature is exactly 212° F.
27. Watch out for ice! Safety comment displayed when water temperature is less than 33° F.
28. Reverse Binary Representing an integer in reverse binary by outputting remainders of division by
2.