Problem:
Looking for assistance in adding user input such as Last Name, First Name, Credit Card number, etc etc to a csv file in Python. I assume I would have to add similar code for each of the user inputs (lastName, firstName, arrivalDate, departureDate, enterRate, enterCC, enterEXP)
Context:
This program mimics a hotel property management system, where guests information such as room number, arrival, departure, CC# are stored. In addition, the program allows the user to input new guests with the 'Make Reservation' menu selection.
Relevant code is attached - thank you!
elif menuSelect == "6":
lastName = input("Please Enter a Last Name: ")
firstName = input("Please Enter a First Name: ")
arrivalDate = input("Please Enter an Arrival Date: ")
departureDate = input("Please Enter a Departure Date: ")
enterRate = input("Please enter Rate Amt: $")
enterCC = input("Please enter a valid Credit Card: ")
enterEXP = input("What is the Expiration Date? mm/yy: ")