I need to make a copy of a large code and replace just a name in the code. I have to do this multiple times with a list of names.
eg:
I have the names:
Jay
Joy
Jane
Juda
and I have an example code/text:
print("Hi");
Print("Hello")
print("Jay"); # here
I want the output to be like:
print("Hi");
Print("Hello")
print("Jay"); # here
print("Hi");
Print("Hello")
print("Joy"); # here
print("Hi");
Print("Hello")
print("Jane"); # here
ie, just changing one part of the code but have to repeat all the other steps.