1.

What is the type of each element in sys.argv?(a) set(b) list(c) tuple(d) stringI had been asked this question during an online interview.My doubt stems from Argument Parsing 1 in section Argument Passing, Global vs Local Variables, Shallow copy vs Deep copy and Recursion of Python

Answer» CORRECT CHOICE is (d) string

Best EXPLANATION: It is a LIST of STRINGS.


Discussion

No Comment Found

Related InterviewSolutions