My question is: Once the customer selects the hotel, ask him the give feedback for the same and update the rating.csv file as per the data received.And how i update that given feed back to these file.
This is what I tried so far:
h_id=str(input("Enter Hotel_Id:"))
with open("rating.csv", "r") as fb:
csvreader = csv.reader(fb, delimiter=",")
for row in csvreader:
if h_id in row[0]:
print("Hotel Booked Sucessfully")
f_back=float(input("Please Give Feedback of Hotel you selected outoff 5:"))
