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 are the two variables that affect the strength of gravity?
Why do you carry the 5 to the tenths column? (on line 2) Convert [tex]\frac{5}{6}[/tex] to a recurring decimal. Divide 5 by 6. 5 divided by 6 is 0, remainder 5,
6(33 - w) = 90 solve for w entre your answer in the box w =
6 lesson 10 the value of x unit
Were the methods that colonists used to protest justified?​
Suppose that you invest $5873 in an account that earns interest at an APR of 4. 4%, compounded monthly. Determine the accumulated balance after 7 years.
_______is used to help psychological professionals diagnose psychological disorders.
Roland’s Boat Tours sells deluxe and economy seats for each tour it conducts. In order to complete a tour, at least 1 economy seat must be sold and at least 6 d
There are 4 blue marbles, 8 red marbles and 5 green marbles. Write a part to whole ratio comparing green marbles.
The vertices of a square are located at (0,4), (4,0), (0, -4) and (-4,0). Select all transformations that will carry this square onto itself.