void resetInput() {
cin.clear();
cin.ignore(numeric_limits<streamsize>::max(), '\n'); //discard input
}
The above code method is to reset inputs. I'm looking for a way to convert this into the Python method. Can someone please help me to do it?