get first letter of each word in string python

Solutions on MaxInterview for get first letter of each word in string python by the best coders in the world

showing results for - "get first letter of each word in string python"
Hannah
28 Sep 2020
1def abbrevName(name):
2    xs = (name)
3    name_list = xs.split()
4    # print(name_list)
5
6    first = name_list[0][0]
7    second = name_list[1][0]
8
9    return(first.upper() + "." + second.upper())
10answer = abbrevName("Ozzie Smith")
11print(answer) 
queries leading to this page
python take first letter of wordhow to get the first letter of a string in pythontake first letter of each word in string pythonfirst word in string pythonfind first char in string of another string pythonpython first word in stringfind first char in string pythonfrom string take first word pythonprint first word from a string pythonprint first letter of every word in the string pythonpython print first letter of stringprint first letter in word pythonget first letter of all the words in a stringextract first character from each word from string in pythonhow to print the first word of a string in pythonfirst word in a string in pythonhow to get the first letters of a string in pythonpython string first characterpython get 1st word from stringhow to take the first letter of a string in pythontitle the first letter of a string pythonhow to get the first letter of each word in pythonhow to read the first letter of a string in pythonhow to read the first character of a word in pythonhow to get the first letter of each word in a list pythonpython code display first letter and last letter of wordfirst letter of each word in pythonpython string first wordget first letters of string pythonfirst letter of a word in pythonhow to find first letter of string in pythonstring first characters pythonmatch first letter of every word in the string pythonget first letter of each word from list in pythonpython take first letter of stringget the first word of a string ptyhonpython get the first word of a sentence first word of a string pythonhow to identify the first letter of a word in pythonpython first char stringfind the first letter in a string pythonhow to get first letter of a string in pythontaking first letter from each word in a stringget first word in string pythonget the first character in string pythonhow to print a first letter in each word and second letter in each word of a sentence in pythonhow to get the first word in a string pythonpython get first word from stringfirst letters of each word from a string in pythonhow to access first letter in string pythonhow to get the first letter of aevery word string in pythongetting the first letter of each word in pythonhow to get the first letter of a word pythonpython string first nth wordspython string get the first letterhow to get the first letter of a word in pythonhow should i get the first word in each string pythonhow to print the first letter of any string in pythonhow to get first letter of string pythonhow to read first letter in a string pythonhow to get first letter of each word in pythonpython get first letters of stringhow to get the first letters from a string in pythonget the first word of a string pythonget the first letter of every element pythonfind first letter in string pythonhow to print only the first letter from each word ina string pyhtonget the first letter of each word in a stringfirst letter of each word pythonpython how to get the first word of a stringhow to get the first alphabet of a string in pythonstring first letter pythonreturn first word of a string pythonhow to get the first word in string pythonget first letter of a string pythontaking a first word in a string in pythonhow to find what letter is in the first letter of a string in pythonpython get first letter of stringpython first letter of a wordhow to print the first letter of a string in pythonfirst letter in string pythonpython first letter of each wordget first letter of each word in list in pythonpython how to choose the first letter of a stringpython find first letter in stringpython return first letter of each word in stringpython get first word of a stringfind a word with specific first letter in pythonthe first letter of each element in pythonget first letter in string pythonaccesing the first letter of a string in pythonget first letter in word in pythonhow to return the first letter of a string pythonpython find method first letter in stringtake first letter of a string pythonfirst letter in string python printhow to find first char of word in pythonpython get first letter wordhow to get the first letter in a string pythonreturn first letter of a string pythonget first letter of each word in string pythonreturn the first word in a string pythonfirst letter in word pythonget the first letter of string in sentence pythonhow to print first letter of string in pythonget the first letter of every string in sentence pythonsting first word in pythonhow to find the first letter in a string pythonpython string get first wordpython first letter of stringget the first letter of a word pythonprint first letter of string pythonhow to get the first alphabet in a string in pythonget first word in string pyhtonhow to get first letter in string pythonhow to print the first letters in a string in pythonpython string first charfirst letter of string pythonget first letter of str in pythonget the first letter of string pythonget first word in sentence pythonhow to return the first letter of every word in pythonhow to print first letter of each word in pythongrab the first letter of each string in an array pythonhow to print first word of a string in pythonfirst letter of every word pythonprint first character of every word in pythonget first letter of each word in pythonfirst letter of a string pythonfirst letters of a string pythonpython first letter of wordhow to find the first word in a string pythonpython get first word in stringfind word with first letter in pytohnget the first letter of a string pythonget first word of string pythonhow to print a first letter in each word of a sentence in each string in pythonpython how to get first letter of stringget first letter of string pythonhow to print the first word of any string in pythonget first letter of each word in string python