rename variable

This commit is contained in:
Craig Richardson 2018-05-15 15:51:07 +01:00
parent a1b5e93ef4
commit d42fdb6fb4

View file

@ -91,10 +91,10 @@ class MorseFlasher:
self.light(False)
time.sleep(symbol_gap)
def encode(self, str):
def encode(self, string):
output = ""
# iterate through string's characters
for c in str:
for c in string:
# find morse code for a character
for x in morse:
if x[0] == c: