Li0ndypeggi0indz Li0ndypeggi0indz
  • 16-01-2017
  • Computers and Technology
contestada

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

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 17-01-2017
def firstChars( word ):
   if( word ): # make sure word has characters
       print( word[ 0 ] ) # print the first character (Python 3 syntax)
Answer Link

Otras preguntas

Primary colors are mixed together to make other colors, so primary colors are a ‘foundation.’ Can you think of something else that can be used or mixed to make
4r power of 6 divided by 28r
Which THREE elements belong to the STEAL method of indirect characterization? Group of answer choices age-group actions speech thoughts education OH MAN HELP
Find the sum of the first 36 terms of the following series, to the nearest integer. 2, 5,8,...
(Angle relationships) Solve this question
A historian interpreting this scroll might reach which of the following conclusions about Medieval Japan?
according to newton's first law of motion what is the reason for a ball throwing up in the airfall back to earth
Is Jack in the box better than McDonald's
What is the cost of an original class D license for a person under 21? What is the cost to obtain a learner's permit?
The first Industrial Revolution was powered by. The second Industrial Revolution was powered by