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

 

gaurav1780@gmail.com 06_strings > remove_at
prev  |  next  |  chance

Define a function that when passed a String and an integer (say idx), returns a String with the character at idx (if any) removed from the original String.


remove_at('super', 2) → 'suer'
remove_at('nicely done', 6) → 'nicelydone'
remove_at('really?', -1) → 'really?'

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

def remove_at(s, idx):

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

Copyright Nick Parlante 2017 - privacy