Using Python 3.x how can I assign specific variables as strings from a notepad example:
Client number 00001
Client account 1-548
Client name Bob
Without doing this manually I want to get: file_name that contains
a=”00001”
b=”1-548”
c=”Bob”
then import this to a script where i have different template's
I am looking to exchange 7 copy paste cycles into 1 / 2
from file_name import *
mail_temp1 = "text block %s text block %s text block %s text block" % (a, b, c)
mail_temp2 = "text block %s text block %s text block %s text block" % (a, d, e)
print(mail_temp1)
print(mail_temp2)
Very new to programming. Thank you