Right Answer:
Strings in Python can be concatenated using the “+” operator to combine multiple strings into one.
Right Answer:
Strings in Python can be concatenated using the “+” operator to combine multiple strings into one.
Right Answer:
The copy() method creates a shallow copy of the list, so changes made to the original list “x” will not affect the copied list “y”. Therefore, the output will be [1, 2, 3].
Right Answer:
This code swaps the values of variables “x” and “y” using tuple unpacking. Therefore, the output will be 20 10.