def choose_block(): Community.get_all_blocks() street, number = view.get_block_data() block = Community.find_block(street, number) if block: block_controller.block_menu(block) else: view.print_error_message()
def is_block_exist(street, number): if Community.find_block(street, number): return True else: return False