Thanks again @Paul ! I needed a fresh pair of eyes! For the else part it worked like I wrote it, I mean I saw it like that in a tutorial, worked with no errors.
As for the bit about self.sleep == False , the way the statement is written at the moment (as you showed above) has now effect. You check to see if self.sleep is False but then do not do anything with that information. It is exactly the same as writing
def turn_on(self):
if self.sleep == True:
return f'{self.nume} is already running'
else:
True
return f'{self.nume} turned on'
or
def turn_on(self):
if self.sleep == True:
return f'{self.nume} is already running'
else:
False
return f'{self.nume} turned on'
That is why I thought is should perhaps be different. The only other option I see for it is if it was meant as a comment and not an actual line of code?