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

Is this right????????? Please help
Contesta la pregunta teniendo presente la siguiente estructura, que debe ser demostrada en 3 párrafos así: Introducción (valor 10 puntos), Cuerpo (valor 30 punt
Math Vocabulary - Match the word to its definition. Column A 1. Exponents: Exponents 2. Term: Term 3. Variables: Variables 4. Coefficient: Coefficient 5. Consta
I NEED SOME HELP PLEASE​
please helpp meeee!!!!
What do you think the answer is
Hello, can you tell me what 1+1 is?? Thank u :)
Early human embryos have gill slits and tails. This is evidence that Your answer: O humans used to be fish O we share a common ancestor with many animals fish a
if cosu = 30/34 find sin2u 1. [tex]\frac{120}{2312}[/tex] 2. [tex]\frac{240}{289}[/tex] 3. [tex]\frac{120}{289}[/tex] 4. [tex]\frac{960}{2312}[/tex]
The Fan A comedy in three acts Scene IV. by Carlo Goldoni [Evarist and Susanna come out of the shop.] [(Candida) watches (Evarist) from the back of the terrace.