What is the value of nums after the following code is execut…
What is the value of nums after the following code is executed? If an error occurs when the statements are executed or the code never finishes executing, write “Error.” nums = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] for r in range(len(nums)): total = 0 for c in range(len(nums[r])): if r % 2 == 0: total += nums[r][c] print(total)
Read Details