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 causes of the French and Latin revolution?
Explain the rule that goes with the pattern 2,6,18,54,162
2x=4 what does x equal?
what is (1/2 times 14 times 11) times 9.5 I'm doing volume of triangular prisms in math and i need help doing the muliplcaion problem
Two factory plants are making TV panels. Yesterday, Plant A produced 4 times as many panels as Plant B. Two percent of the panels from Plant A and 3% of the pa
You ate five slices of bread. Your friend eats two slices fewer than you. Write an expression that describes the number of slices your friend eats
henry viii had a major impact on the reformation
Plz Help. Part 1: Incomplete Dominance—Predicting Flower Color in Snapdragons Snapdragons are popular garden plants that produce brightly colored flower
HAS ANYONE DONE 4.11: Unit Test.
martin mixes 1 cup lemonade with 4 cups cranberry juice to make his favorite drink how much cranberry juice does he need if he uses 5 cups of lemonade?