Print and remove previous line code example Example: Print and remove previous line print ("Hello world", end="\r")