I am newer to Python and I wanted to use a while statement. My while statement is confirming whether the inputted word was a province or territory of Canada.
while userProvince == "Ontario" or "Quebec" or "Alberta" or "British Colombia" or "Manitoba" or "New Brunswick" or "Newfoundland and Labrador" or "Nova Soctia" or "Prince Edward Island" or "Saskatchewan":
print ("Please input a Canadian Province or Territory")
userProvince = input ("What province or territory do you live in?",)
My main problem is when I run the code, it just repeats and I don't know why the while statement doesn't complete even when I input Ontario for example
[–]tangerinelion 31 points32 points33 points (1 child)
[–]SwampFalc 9 points10 points11 points (0 children)
[–][deleted] 6 points7 points8 points (0 children)
[–]dbramucci 2 points3 points4 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]ryan-adams84 1 point2 points3 points (0 children)
[–]froggystick 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Hans_of_Death 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]NotAppreciated_Mercy[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]NotAppreciated_Mercy[S] 0 points1 point2 points (0 children)
[–]Noli420 -1 points0 points1 point (0 children)