I want to remove all rohitsharma names from the list remove function is remove only the first one what should I do?
names=['rohitsharma','msd','Brettlee','Dravid','rohitsharma','akhil','python','rohitsharma','dhoni','rohitsharma','rohitsharma']
print(names)
names.remove('rohitsharma')
print(names)