PCEP-30-02 practice question 32 of 35

What is the output of the following Python code? my_tuple = (1, 2, 3) my_tuple[2] = 4 print(my_tuple)

Choose your answer, then check it against the explanation.

Domain Data Collections – Tuples, Dictionaries, Lists, and Strings

What is the output of the following Python code? my_tuple = (1, 2, 3) my_tuple[2] = 4 print(my_tuple)
Answer options
Question 32 of 35

Keep practicing

Take the free PCEP-30-02 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other PCEP-30-02 practice questions

Scroll to Top