0
309views
What is the use of * operators in association with list in Python?
1 Answer
1
2views

'*' is used as a multiplication operator in python. for eg:-

print(2*3)

-> 6

List in python are a set of elements of different data types. for eg:-

p=['a','d',1,2,2.4]
print(p)

-> ['a', 'd', 1, 2, 2.4]

How * operators in associated with the list ?? '*' operator repeats the entire …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.