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

 

konstans@stuy.edu all > testReverseWithCaps
prev  |  next  |  chance

Write a function reverseWordsWithCapitals(L) that takes a list of strings L, and that returns a copy of the list. It should replace any strings that contain a capital letter with the reversed version of that string. (note codingbat does not detect if you destroy the original list, but in general, you should be careful and not do that.)


testReverseWithCaps([]) → []
testReverseWithCaps(['abc', 'xaBc']) → ['abc', 'cBax']
testReverseWithCaps(['aBc']) → ['cBa']

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

def testReverseWithCaps(L):

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

Copyright Nick Parlante 2017 - privacy