answered 2021-06-14 16:00:00 +0000
One way to do this would be to replace each digit with its double:
2 + 2 = 4
becomes
5 + 5 = 10
In Python, you could write:
print("2 + 2 = 4".replace("2", "5").replace("4", "10"))
This will output: