number = 3.333333 result = format(number, ".2g") print("Formatted decimal number result is =>", result) "Formatted decimal number result is => 3.33"