Ask Question

Implement the function first chars () that takes a list of strings as a parameter and prints to the screen the first character of each string, python

+3
Answers (1)
  1. 30 April, 08:44
    0
    Def firstChars (word):

    if (word) : # make sure word has characters

    print (word[ 0 ]) # print the first character (Python 3 syntax)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Implement the function first chars () that takes a list of strings as a parameter and prints to the screen the first character of each ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers