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

 

zipper


Given two strings, zip them together, up to the point of twice the length of the smaller string


zipper('abc', 'def') → 'adbecf'
zipper('I Enjoy', 'This') → 'IT hEins'
zipper('12345', '6789') → '16273849'

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

def zipper(str1, str2):

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

Copyright Nick Parlante 2017 - privacy