Remember: in order to display the required number of decimal places, you need to use the command format()
.
For example, to display the value of a real variable with an accuracy of 4 decimal places, you need to write it like this:
x = 1.24323543
print("x = {:.4f}".format(x)) # on screen: x = 1.2432