about | help | code help+videos | done | prefs |
testReverseWithCaps
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy