Solve problem "Replace within the fragment" online - Learn Python 3 - Snakify

Replace within the fragment


Given a string. Replace every occurrence of the letter h by the letter H, except for the first and the last ones.

In all the problems input the data using input() and print the result using print().