Skip to content

Commit 039879e

Browse files
committed
f-string fix
f-string fix No more instances left in the file
1 parent a15e2b5 commit 039879e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Star_Trek_Data_Dispenser/code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,8 @@ def toggle_brightness():
15111511
display.brightness = DIM_BRIGHTNESS
15121512
else:
15131513
display.brightness = FULL_BRIGHTNESS
1514-
print(f"Brightness: {"dim" if is_dimmed else "full"}")
1514+
bright_label = "dim" if is_dimmed else "full"
1515+
print(f"Brightness: {bright_label}")
15151516

15161517

15171518
DEMO_HOLD = 3 # seconds per screen in demo mode

0 commit comments

Comments
 (0)