Mar-24-2023, 03:11 AM
prefix and suffix are just variables. They could be a and b or they could be num_str and leftover. Nothing special about prefix and suffix other than being good choices for variable names. There is no magic here. Nothing new. Just using split() to split a string into two strings. The split character is the first comma. Since there are more than one comma, I set the maxsplit to 1. This will give me the string before the first comma (prefix) and the string after the first comma (suffix).