id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

dsawyer@methacton.org > lasts
prev  |  next  |  chance

x is a list of strings. Complete the function so that it returns a string that consists of the last letter of each string in the list. Assume that every string in the list has a length of 1 or more. List of strings


lasts(['Mina', 'Margaret', 'Hannah', 'Jess', 'Issac']) → 'athsc'
lasts(['Caitlyn', 'Michelle', 'Maddy']) → 'ney'
lasts(['Kyle', 'Zach', 'Nick', 'J']) → 'ehkJ'

...Save, Compile, Run (ctrl-enter)

def lasts( x ):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 250

Copyright Nick Parlante 2017 - privacy