Пример #1
0
 def run(self):
     """
     Runs the program
     """
     Prompt.welcome()
     if Prompt.will_start():
         self._wallet = Wallet()
         print("\nSuccessfully created wallet")
         while True:
             option_input = Prompt.display_options()
             self.give_options(option_input)
 def run(self):
     """
     Runs the program
     """
     Prompt.welcome()
     file_path = Prompt.prompt_file_path()
     self.dictionary = Dictionary(file_path)
     will_continue = True
     while will_continue:
         user_input = self.prompt_word()
         definition = self.search(user_input)
         print(f"{definition}\n")
         will_save = Prompt.prompt_save()
         if will_save:
             FileHandler.write_lines(
                     "./data.txt", self.get_saved_key_pair())
             print("Saved Successfully")