PCEP Certified Entry-Level Python Programmer (PCEP-30-0X) Practice Exam

Question Number 5


What does the code 'vals[0],vals[1]=vals[1],vals[2]' accomplish?
✔ Correct Answer:
It swaps the values of vals[0] and vals[1]