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

how have hamsters adapted to life in the wild where food is sometimes scarce?
In which form of government do delegates speak on behalf of citizens? popular sovereignty authoritarian monarchy representative totalitarian
HelpWhich of the following publications is likely to use an INFORMAL style for their audience? Daily Business Digest Celebrities R Us Important People Magazine
As Hitler gained power and rearmed Germany’s military forces, Germany formed an alliance of “Axis Powers” with __________.
why did the location of greek settlements allow contact with other civilizations
One-half of a number, increased by 9, is less than 33.
House numbers on one side of a street are conservative even integer the sum of the first three house numbers on the street is 6216 what is the number of the thi
What is the ratio of 3.5 chicken stock to8 mixed veggies.
which sentence is in natural order? -Are the tomatoes ripe yet? -Ask the farmer if he has any corn. -Do you have any fresh eggs for sale -Behind the weathered b
What region of North America did Britain gain control of after the French and Indian War?