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

114% is equivalent to what fraction in reduced terms?
Can someone please help me find the area?
How does the Federal Funds Rate affect consumers looking to take out a loan?
is this the correct graphing for the inequality 2c<=100? i’ll mark brainliest please help!!!
Is my answer correct?
It costs 9,328 points to build each apartment building in the computer game Big city building.What is the cost to build 5 apartments
Please help with the three questions,:does it represent a function
Which of the following is true of lossy and lossless compression techniques? a. Lossless compression throws away unimportant details that a human being will lik
When solid A of mass 12g is completely immersed in ameasuring cylinder filled with water it displace the same volume of water as dose solid B of mass 8g what c
What is a point mutation? And what are the two consequences?