So from what I understand. \b removes the previous character in the code. So I understand why my first line of code is cat. But what is going on after that?
print("car\bt")
print("car\b\bt")
print("car\b\b\bt")
print("car\b\b\b\bt")
print("car\b\b\b\b\bt")
print("car\b\b\b\b\b\bt")
print("car\b\b\b\b\b\b\bt")
Output:
cat
ctr
tar
tar
tar
tar
tar