Skip to content

Commit e43369e

Browse files
committed
Rename variables
1 parent 7cd2111 commit e43369e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Foul_Fowl/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def launch_terminal():
135135
time.sleep(pause)
136136

137137
# type a message a few times
138-
for i in range(3):
138+
for _ in range(3):
139139
layout.write("HELLO FRIEND")
140140
# time.sleep(pause)
141141
kbd.press(Keycode.ENTER)

FruitBox_Sequencer/main.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
step_col = [WHITE, RED, YELLOW, GREEN, AQUA, BLUE, PURPLE, BLACK]
4343

4444

45-
def prog_mode(i):
46-
cpx.play_file(audio_files[i])
47-
step_note[step] = i
45+
def prog_mode(index):
46+
cpx.play_file(audio_files[index])
47+
step_note[step] = index
4848
cpx.pixels[step_pixel[step]] = step_col[step_note[step]]
49-
print("playing file " + audio_files[i])
49+
print("playing file " + audio_files[index])
5050

5151

5252
while True:

0 commit comments

Comments
 (0)