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

what is the difference in place value between the 2 in 324 and the 2 in 0.324
What does e^-infinity equal? And what does e^infinity equal?
what is the value of n? 9×27+2×31-28=n
Write the solution to the system below: -3x+y=6 y=-[tex] \frac{1}{2} [/tex]x-1 Note: You can also answer "No solution" or "Infinite Many" solutions
how much does 20 hundreds equal
Which could be considered an act Indicating acceptance of the Social contract
Write the ratio 42 inches to 9 feet as a fraction in simplest form. Explain why you get the same result whether you convert feet to inches or convert inches to
A stockbroker earns a base salary of 40000 dollar plus 5%of the total value of the stocks,mutual funds , and other investments that the stockbroker   sells.last
what is the weight in newtons of a person who weights 60kg
What was one of the main goals of the March on Washington on August 28, 1963?