← Back to Question List
Python Code Walkthrough #51
Assign And Test In One Step
📄 Code
Read carefully — what does this print?1values: list[int] = [3, 8, 2, 9, 1]2i: int = 03total: int = 04while (n := values[i]) < 9:5 total = total + n6 i = i + 17print(n, i, total)