What is the right syntax for copying a list from one location to another?
A. listA = listB[]
B. listA = listB[:]
C. listA = listB[] ()
D. If listA is equal to also equal to listA.
Answer:B
What is the right syntax for copying a list from one location to another?
A. listA = listB[] B. listA = listB[:] C. listA = listB[] () D. If listA is equal to also equal to listA.
Explanation: listA = listB[:] is a formula for calculating the number of items in a list.