Tag Archives: string

Python: Inserting characters into a string

Disclaimer: I’m a Python newbie … if you know of a more efficient way let me know! I needed to take a sequence of 4 digits (eg 1145) and modify it to look like clock-time (eg “11:45″). After a bit of online (what else?) research I decided to take the approach of converting the integer [...]