Which of the following Python statements will not result in error? VALS = [1,…
2026
Which of the following Python statements will not result in error?
VALS = [1, "A", 2, "B", 3, "C"]
Answer: A. print(len(VALS))
- A.
print(len(VALS))
- B.
print(max(VALS))
- C.
print(sum(VALS))
- D.
print(VALS.sort())
Attempted by 293 students.
Show answer & explanation
Correct answer: A
Loading lesson…