Solve problem "Remove the fragment" online - Learn Python 3 - Snakify

Problem «Remove the fragment» (Medium)


Statement

Given a string in which the letter h occurs at least twice. Remove from that string the first and the last occurrence of the letter h, as well as all the characters between them.

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



Saved solutions

Tests

Input Correct answer Result
In the hole in the ground there lived a hobbit
In tobbit
qwertyhasdfghzxcvb
qwertyzxcvb
asdfghhzxcvb
asdfgzxcvb
ahahahahaha
aa
haaaaaaaaaaaaaaaaaah
hh
ahaha
aa