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

 

jgreenawalt@ccboe.com ccpspython > midLetters
prev  |  next  |  chance

Find the letter in the middle of a given word. If the length of the given word is even return the two middle letters. If the given word has no letters return "sorry".


midLetters('cat') → 'a'
midLetters('') → 'sorry'
midLetters('saddle') → 'dd'

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

def midLetters(word):

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: 120 Post-solution available

Copyright Nick Parlante 2017 - privacy