Insert in front of each exclamation mark in the specified line
coma.
How can I write a command to determine the exclamation mark? And what command can be used for this? Which command to use to insert a comma before an exclamation mark?
Insert in front of each exclamation mark in the specified line coma.
How can I write a command to determine the exclamation mark? And what command can be used for this? Which command to use to insert a comma before an exclamation mark?
This is missing some info - such as what line?
However, if the required line is a string, then use.find() to find the ! and then .insert() to insert the ,