Write A Python Program To Fill A Letter Template?
Write A Python Program To Fill A Letter Template Given Below With Name And Date.
Letter :
Dear <|NAME|>,
Greetings from ABC coding house. I am happy to tell you about your selection
Congratulation You are selected!
Date: <|DATE|>
Code:
letter = '''Dear <|NAME|>,
Greetings from ABC coding house. I am happy to tell you about your selection
Congratulation You are selected!
Date: <|DATE|>
'''
name = input("Enter Your Name\n")
date = input("Enter Date\n")
letter = letter.replace("<|NAME|>", name)
letter = letter.replace("<|DATE|>", date)
print(letter)
Comments
Post a Comment