SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the round function.
round(80.23456, 3)
will give you an answer of 80.234
In your case, use
answer = str(round(answer, 2))