def __init__(self): Operation.__init__(self)#ירושה Operation Operation.__new__(self) while True:#בדיקת קלט yes or no self.to_open = input("\n\nDo you want to overwrite the content or add characters to file ?\nyes = add characters\nno = overwrite\n\n").lower() if self.to_open == 'yes': self.run_yes() elif self.to_open == 'no': self.run_no() else: print(" Please enter only yes or no\n")