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

Based on the information in this map which statement about voter turnout in the 1998 election would be most accurate
Need Help With Math Questions!!! Will reward Brainliest!!!!
Which major event marked the final end of the Roman Empire? Splitting the empire into Eastern and Western Empires the rise of Constantine constant civil wars th
I need to find the volume for number 10
please help w/ this question image attached
Jacob bought 7 T- shirts for $32.90. Kyle bought 12 T- shirts for $60.00. Part A Kyle says that he paid less per T- shirts than Jacob. Is Kyle correct? Expl
Which of these innovations was spread to Southern Africa as a result of the Bantu migrations? A.) gunpowder. B.) iron working. C.) crop rotation. D.) subsis
What is the exact solution to the equation 2^3x−2 = 5^x
what system is most active when you are at rest
Why is Freedom of Speech Important?