Skip to content
← Back to Community
pls help me
Profile icon
SavageSpray

my friend challenged me to do this: This program is called Monogram. Usually, for the monogram, the program asks the user for their first, middle, and last name. For this project, you will allow the user to enter as many names as possible. Then you will grab the first letter of each name to print out all the initials. You will need to use at least the following items in your program: variables, loops, string methods, if statements.
please explain this to me. i really dont know how to do this.

Voters
Profile icon
AnthonyGirardo
Profile icon
SavageSpray
Comments
hotnewtop
Profile icon
ch1ck3n

What part do you not understand?

Profile icon
SavageSpray

like how to do it.

@ch1ck3n

Profile icon
ch1ck3n

@SavageSpray
Why don't you make an array that stores the first, middle and last name then use a for loop to print out the first letter of each of the names.

input1 = input("WHat is your first name?") input2 = input("WHat is your middle name?") input3 = input("WHat is your last name?") thisarray = [] thisarray.append(input1[0])

A starter code

Profile icon
SavageSpray
Profile icon
OldWizard209

BTW, please don't do things like 'pls help me' cuz it is not proffesional.

Proof:

image

Its is available on this link.

Profile icon
JasonLiu19

what language? Python?

Profile icon
SavageSpray
Profile icon
RYANTADIPARTHI

like this:

first = input("First name : ") middle = input("Middle name : ") last = input("Last name : ") d = list() d.append(first[0].title()) d.append(middle[0].title()) d.append(last[0].title()) print("".join(d))

done!

Profile icon
Bookie0

@RYANTADIPARTHI
This is spoon-feeding. Try to explain the code, or at least add comments saying what each stuff does! :)

Profile icon
SavageSpray

please help me!