BRAIN CORP Interview Question

Python: What is this notation mean? [1, 2, 3] What is this mean? (1, 2, 3) What is the difference?

Interview Answer

Anonymous

May 20, 2019

List. I eventually gut to a tuple, but given I'm a C++ guy, I just started thinking in terms of notation, not Python, as I don't have much experience leveraging tuples or if I did, it's not something I would readily think about.