KnowledgeBoat Logo

Computer Science

Find the errors:

L1 = [3, 4, 5]
L2 = L1 * 3
print(L1 * 3.0)
print(L2)

Python List Manipulation

29 Likes

Answer

The line print(L1 * 3.0) causes an error as Python does not allow multiplying a list with a non-int number and 3.0 is of float type.

Answered By

12 Likes


Related Questions