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

 

noOdds


x is a string. Complete the function so that it returns a string that is identical to the parameter except that all the letters that had been at odd indices are gone.


noOdds('twice') → 'tie'
noOdds('METHACTON') → 'MTATN'
noOdds('&') → '&'

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

def noOdds( 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: 150 Post-solution available

Copyright Nick Parlante 2017 - privacy