diff --git a/Morse_Code_Flasher/main.py b/Morse_Code_Flasher/main.py index 0d0212f2..9dddbc4b 100644 --- a/Morse_Code_Flasher/main.py +++ b/Morse_Code_Flasher/main.py @@ -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: