I was wondering if there's a way to clear text on a program. For example, when "y" is pressed to play again I want it to clear the text above it so it doesn't look jumbled together and to give the appearance that the score is staying in the top left and updating. Also, it there another way I could keep a score in the top left that updates? I wasn't sure how to explain this, tell me if I need to explain this in more detail.
system commands are apparently bad practice, but I'm not nearly experienced enough to understand why and give my own opinion. Printing a load of empty lines seems sufficient for the case at hand though.