How Do I Remove The Previous Question Printed When Iterating Through A Loop In Python Stack

How Do I Remove The Previous Question Printed When Iterating Through A Loop In Python Stack