im trying to create a system which asks for a specific shirt size and colour. white is avaliable in l and m and blue is avaliable in m and s.
im struggling to get the code for searching if the size needed is avaliable. I know that coloursize is undefined, but im trying to search in the 'bluesize' or 'whitesize' list of specified variables depending on what colour is inputted by the user! im still very new to coding and trying to teach myself so any help and tips would be appreciated! thank you.
im struggling to get the code for searching if the size needed is avaliable. I know that coloursize is undefined, but im trying to search in the 'bluesize' or 'whitesize' list of specified variables depending on what colour is inputted by the user! im still very new to coding and trying to teach myself so any help and tips would be appreciated! thank you.
whitesize= "L" or "M" bluesize= "M" or "S" colour= "white" or "blue" size_needed= input("what size?: ") colour_needed= input("What colour: ") for colour_needed in colour: if size_needed in coloursize: print("true") else: print("false")