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

3/4 divided by -1/4 simplest form
In the human body, when the blood sugar level rises, a hormone known as insulin is released by the pancreas. This hormone speeds up the movement of sugar out of
Describe the current beliefs as to why people age please
what is 49% of 15? Is it 1.5,4,7.5,or 9?
Mitch is writing a research paper on the motifs and symbols in the Lord of the Flies by William Golding. He used a dictionary entry as a resource. What is the c
reid ate 1/4 of the pumpkin pie vince ate 1/3 of the same pie how mutch of the pie was left after reid and vince ate their pieces
Venus can often be seen IN THE NIGHT SKY. A.adjective B. adverb C.appositive
After the Civil War, Lincoln supported a mild Reconstruction of the South. Which group favored a much harsher reconstruction plan in the South? A.Radical Republ
how does dividing mixed number compare with dividing fractions?
where do the premises for the arguments presented in the declaration of independence appear