195k views
2 votes
Write a program that declares variables named init1, init2, and init3, to hold your three initials. Display the three initials with a period following each one, as in J.M.F.

User Sevenever
by
5.0k points

1 Answer

2 votes

Answer:

Written in Python

init1 = input("initials 1: ")

init2 = input("initials 2: ")

init3 = input("initials 3 ")

print(init1+"."+init2+"."+init3)

Step-by-step explanation:

This line prompts user for init1 and gets the input

init1 = input("initials 1: ")

This line prompts user for init2 and gets the input

init2 = input("initials 2: ")

This line prompts user for init3 and gets the input

init3 = input("initials 3 ")

This line prints out the required output

print(init1+"."+init2+"."+init3)

User Avnish Nishad
by
5.0k points