# -------------------------------------
# Chapter -3 practice set...
# -------------------------------------

# (1)

# name = input("Enter the name: ")
# print("Good Morning " + name)

# (2)

# letter = '''Dear <|NAME|>,
# You are selected!
# Date: <|DATE|>
# '''
# name = input("Enter Your Name: ")
# date = input("Enter Date: ")
# letter = letter.replace("<|NAME|>", name)
# letter = letter.replace("<|DATE|>", date)

# print(letter)

# (3)

# st = "This is a string with double   speaces    jdfosodfj"
# print(st.find("  "))

# (4)

# st = "This is a string with double  speaces"
# print(st.replace("  ", " "))

# (5)

# letter = "Drear Harry, This python course is nice! Thanks!"
# print(letter)

# formatted_letter = "Drear Harry,\n \tThis python course is nice!\nThanks!"
# print(formatted_letter)