Skip to content

Commit f061b21

Browse files
committed
fix the print string formatting
1 parent d307ceb commit f061b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/lsm303dlh_mag_compass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ def get_heading(_sensor):
2222

2323

2424
while True:
25-
print("heading: {.2f} degrees".format(get_heading(sensor)))
25+
print("heading: {:.2f} degrees".format(get_heading(sensor)))
2626
time.sleep(0.2)

0 commit comments

Comments
 (0)