For example the_initials[0] represents the first name, how do I make a program recognize what the first letter in the_initials[0] is?
Strings are like arrays of characters in most languages and you can access characters like an array.
To get the first character do the_initials[0][0]
EXAMPLE:
>>> hi = ("hello","test")
>>> print hi
('hello', 'test')
>>> print hi[1]
test
>>> print hi[1][0]
t
How would I make it so that if the last name is entered in lowercase letters, the first letter of the last name will always be displayed with a capital? For example right now if I enter peter as the last name it will be displayed as peter.. I need it to be displayed as Peter. And another thing, how do I make it so that no matter how sloppy a name is entered it will be made neater? For example if the last name is entered peTEr, I need it to display Peter.
def main():
full_name = raw_input("Please enter your full name (first, middle and last name with a space in between each name): ")
print "Nice to meet you:", initials(full_name)
def initials(full_name):
the_initials = full_name.split(" ")
first_initial = the_initials[0][0].upper() + "."
second_initial = the_initials[1][0].upper() + "."
return first_initial + " " + second_initial + " " + the_initials[2].title()
main()

