2 ms·
That's not a structure in Python; that's a piece of program syntax which constructs one. Python is confused between the two, but here we have a telltale detail
by kazinator 7y ago
That's not a structure in Python; that's a piece of program syntax which constructs one.
Python is confused between the two, but here we have a telltale detail that tells us which this is: the presence of var1.
Can you write a Python function which returns a list that contains var1 as an element, so that it prints exactly as [... ,var1, ...]?