Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def newInvoice():
- house_list = db.execute("SELECT * FROM Houses")
- house_ID = []
- for house in house_list:
- print(house)
- house_ID.append(int(house[0]))
- for n in house_ID:
- print(n)
- def Current_House():
- CurrentHouse = input("Select the house to add invoice to: ")
- print(CurrentHouse)
- if int(CurrentHouse) in house_list:
- print("B")
- return CurrentHouse
- else:
- print("House not found")
- Current_House()
- if CurrentHouse == "":
- print("Enter a house")
- Current_House()
- else:
- Current_House()
- print(Current_House())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement