Thread shed final step


Can someone help me understand why the code works in the last step of Thread Shed, all i did was look at the solution but still couldn’t understand the logic behind it



The code above differs from the earlier string formatting that used %. The link above gives a very good comparison and is a cheatsheet worthy of a bookmark.