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

Solve: 3x + 11 less than or equal to (inequality) 2 ???
In triangle ABC, m∠C = 90°, c = 17, and a = 8, then which of the following is the measure of side b?
Select the correct form of the verb: nosotros/poder podemos podamos puedemos puedamos
Writers James Weldon Johnson and Zora Neale Hurston took part in a movement called
A ______ is the difference between the regular selling price of an item and its discounted price.
the length of a rectangle is 3 time the width. the perimeter is 65.6 cm. find the width.
I was so proud of ______ when I ran a mile in under six minutes. Which best fits in the blank? itself yourself myself herself
Which of the following best describes Biology A.an applied science B.a social science C.Not a Science D.A basic science
Create and narrate a weather report that takes place in 3 cities in Argentina, incorporating vocabulary concerning the weather, clothing, and season-appropriat
The battle that forced japan to give up its quest for new guinea was the: