Skip to content

Commit 6360c35

Browse files
committed
update
1 parent 7c6cdbe commit 6360c35

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

command/undo/Light.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ def dim(self, level: int) -> None:
1818
if level == 0:
1919
self.off()
2020
else:
21-
print(f"Light is dimmed to {self.level}%")
21+
# print(f"Light is dimmed to {self.level}%") # authors' code
22+
self.on() # Not the authors' code. But this code can help show the results in the book.
23+
print() # Not the authors' code. But this code can help show the results in the book.
2224

2325
def getLevel(self) -> int:
2426
return self.level
-3.02 KB
Loading

0 commit comments

Comments
 (0)