I need to have it continue to ask for input until q or quit is entered:
shape = input("Press enter to start session").lower()
a = 0
b = 0
h = 0
r1 = 0
r2 = 0
r3 = 0
while shape != "q" or shape != "quit":
shape = input("Enter shape type Cube or Pyramid or Ellipsoid (q to quit)").lower()
if shape == "c" or shape == "cube":
a = input("Side length: ")
elif shape == "p" or shape == "pyramid":
b = input("Base length: ")
h = input("Height: ")
elif shape == "e" or shape == "ellipsoid":
r1 = input("Radius 1: ")
r2 = input("Radius 2: ")
r3 = input("Radius 3: ")
elif shape != "q" or shape != "quit":
shape = input("Enter shape type Cube or Pyramid or Ellipsoid (q to quit)").lower()
if shape == "q" or shape == "quit":
print("Your session has ended")
I enter q or quit put it still asks for another shape and it continues to ask for the shape endlessly.