userans = input("Do you want to become a member of Friends of Seaview Pier? ").lower()
while not (userans == "yes" and "no"):
userans = input("Do you want to become a member of Friends of Seaview Pier? ").lower()
print (userans)
if userans == "yes":
Appdata = Application()
userans2 = input("Do you want to volunteer at Seaview Pier? ").lower()
if userans2 == "yes":
Vdata = Volunteerdata()
CombinedData = [Appdata, Vdata]
Data.append(CombinedData)
print(Data)
else:
print("Thank you for considering.")
Vdata = (["no"])
CombinedData = [Appdata, Vdata]
Data.append(CombinedData)
print(Data)
elif userans == "no":
print("Thank you for your consideration.")
There are a few print functions in there just so I can check what it going in and coming out as it runs. I also haven't included the functions i made for the sake of convenience, as I'm pretty sure this is as issue with this bit of code here and not them.
An example of the output and input is below:
Do you want to become a member of Friends of Seaview Pier? no
Do you want to become a member of Friends of Seaview Pier? no
no
Do you want to become a member of Friends of Seaview Pier? on
on
Do you want to become a member of Friends of Seaview Pier? no
no
Do you want to become a member of Friends of Seaview Pier? yes
yes
Enter your first name: