how to print decimal values upto 6 decimal in python code example Example: give answer in 6 decimal python print("{:.6f}".format(variable_name))