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

Python > Warmup-2 > string_bits
prev  |  next  |  chance

Given a string, return a new string made of every other char starting with the first, so "Hello" yields "Hlo".

string_bits('Hello') → 'Hlo'
string_bits('Hi') → 'H'
string_bits('Heeololeo') → 'Hello'

...Save, Compile, Run         

See also Python Example Code. Python help docs: Python Strings | Python Lists | Python If Boolean


prev  |  next  |  chance   |  CodingBat  >  Warmup-2

Forget It! -- delete my code for this problem 209.0

Copyright Nick Parlante 2006-10 - privacy