chapter 10 week 6 quiz Index => chapter 10 week 6 quiz Quiz Show all questions <= => What is the difference between a Python tuple and Python list? ? Lists are mutable and tuples are not mutable ? Lists are indexed by integers and tuples are indexed by strings ? Lists maintain the order of the items and tuples do not maintain order ? Tuples can be expanded after they are created and lists cannot Which of the following methods work both in Python lists and Python tuples? ? sort() ? append() ? pop() ? index() What will end up in the variable y after this code is executed? x , y = 3, 4 ? A two item list ? A dictionary with the key 3 mapped to the value 4 ? A two item tuple ? 4 In the following Python code, what will end up in the variable ...
Comments
Post a Comment
if you have any doubt , please write comment