I read a formatting message from database, and I want to fill message parameters from a dictionary.
The problem is where I got a mixed parameter that need calculation.
data = {"p1": 10, "p2": 8}
msg = "user point is {p1+p2}" # read from database
print(msg.format_map(data))
How can I handle this?