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

 

amgreyson@gmail.com > everyThirdCharacter
prev  |  next  |  chance

Given a string, return a list containing every third character, beginning with the first character, using exactly one line of code.


everyThirdCharacter('000111222333444555') → '012345'
everyThirdCharacter('gkla87tnboqqrirbp2omxtzxidfcqas') → 'gatorbotics'
everyThirdCharacter('itrPmshqwozxnope') → 'iPhone'

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

def everyThirdCharacter(aString):

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

Copyright Nick Parlante 2017 - privacy