You can loop through the list and make a new list that changes each item into an int.
marks = ["50", "60", "70", "80", "90"] marks = [int(mark) for mark in marks] print(marks)
Output:[50, 60, 70, 80, 90]