Currently there is no way to "escape" % character in print format string i case we want to print actual % not replace it with argument.
- We can use common
%% but this makes following code invalid print("%%", a, b).
- Rust like argument positions might be better
print("My age is {}.", age) then print("{}{}", a, b)
Currently there is no way to "escape"
%character in print format string i case we want to print actual%not replace it with argument.%%but this makes following code invalidprint("%%", a, b).print("My age is {}.", age)thenprint("{}{}", a, b)