Computer Science, asked by Rubi5035, 10 months ago

[1,3,5]*3 and[1,3,5]*=3 find output and difference

Answers

Answered by animesh6219
1

Answer:

Considering it as python problem:

>>> [1,3,5]*3

[1, 3, 5, 1, 3, 5, 1, 3, 5]

# list items repeated 3 times

--------------------------------------------------

>>> [1,3,5] *=3

File "<stdin>", line 1

SyntaxError: can't assign to literal

Similar questions