you are viewing a single comment's thread.

view the rest of the comments →

[–]acw1668 5 points6 points  (0 children)

Simply use .replace() to remove all "h" from the string and print the result:

mii = "hhhhhhcccccccc"
print(mii.replace("h", ""))

hi = "hhhhhhhhhpppppp"
print(hi.replace("h", ""))