fork download
  1. msg = "hello 123 WORLD"
  2. length = len(msg)
  3. lower_count = sum(1 for ch in msg if ch.islower())
  4. new_msg = msg.replace("WORLD","Python")
  5. result = new_msg.lower()
  6. print("结果",result)
Success #stdin #stdout 0.07s 14112KB
stdin
Standard input is empty
stdout
结果 hello 123 python