msg = "hello 123 WORLD"
length = len(msg)
lower_count = sum(1 for ch in msg if ch.islower())
new_msg = msg.replace("WORLD","Python")
result = new_msg.lower()
print("结果",result)