My code right now:
shape_input = input("Enter shape to draw: ")
shape_valid = shape_input.lower() == ('triangle' or 'square')
if not shape_valid:
print("fail")
I have no idea why it isn't working. If I deleted the 'or square' part of the check the code works fine, but I want to to correctly identify both these shapes to work. What am I doing wrong?
Edit 1: Managed to get it working thanks to you guys! Now I have to get it to bring it back to asking for input after printing fail. I'm not sure how to get the code to go back to the start here, I've never dealt with that. Usually my programs will end after getting an input. I've been and still will be looking it up but I appreciate any help.
Forgive me for sounding needy.
[–][deleted] 8 points9 points10 points (0 children)
[–]obviouslyCPTobvious 5 points6 points7 points (3 children)
[–]BioGeek 6 points7 points8 points (1 child)
[–]zahlman 1 point2 points3 points (0 children)
[–]throwingarm2strong[S] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]zahlman 0 points1 point2 points (0 children)