Hi, I am newbie in python and facing some problem , my problem is that how to insert some fields in already existing string for example: suppose i have read one line from any file which contains:
line=Name Age Group Class Profession
now i have to insert 3rd Field(Group) 3 times more in the same line before Class field. it means output line should be:
output_line=Name Age Group Group Group Group Class Profession
i can retrieve 3rd field easily(using split method) but please let me know the easiest way of insertion in the string