0
309views
What is the use of * operators in association with list in Python?
1 Answer
written 2.1 years ago by |
'*' 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 …