<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_Note(self, string=0, fret=0, maxfret=24):
 """Return the Note on 'string', 'fret'. Throw a RangeError if either the fret or string is unplayable. Examples: 'A-3' 'A#-3' 'A-4' """

        if 0 <= string < self.count_strings():
            if 0 <= fret <= maxfret:
                s = self.tuning[string]
                if type(s) == list:
                    s = s[0]
                n = Note(int(s) + fret)
                n.string = string
                n.fret = fret
                return n
            else:
                raise RangeError("Fret '%d' on string '%d' is out of range"
                        % (string, fret))
        else:
            raise RangeError("String '%d' out of range" % string)