I have this list of strings
lst = ["/foo/dir/c-.*.txt","/foo/dir2/d-.*.svc","/foo/dir3/es-.*.info"]
and I have a prefix string :
/root
Is there any pythonic way to add the prefix string to each element in the list, so the end result will look like this:
lst = ["/root/foo/dir/c-.*.txt","/root/foo/dir2/d-.*.svc","/root/foo/dir3/es-.*.info"]
If it can be done without iterating and creating new list ...