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

Which of the following would make you weigh half as much as you do right nowi?a. Take away half of the Earth's atmosphere.b. Take away half of the Earth's mass.
In Christianity, "the world" means the sinful, flawed world of humans. What is the effect of the contrast between the world" in! this poem and the author's refe
Noah's hose sprays water at a rate of 6.7 gallons per minute. If Noah waters his lawn for 10 minutes, how much water has he used?
What Baroque characteristics can you identify in the image above?
Help please! Check picture!!
Given the graphed function below, which of the following ordered pairs are found on the inverse function?
can someone do a science test for me
To avoid skidding, she was always ________ while driving in the snow
How did transnational businesses, stock markets, and limited-liability corporations all help to increase capitalist global trade? (Period 1750-1900)
Which of the following is/are true about eukaryotic transcription? A) RNA polymerases bind directly to the core promoter (TATA box) B) Transcription facto