print("Welcome to the paint program") while True: height = float(input("Please enter the height of the room in metres. \n\ ")) if height < 2: print("Minimum height of 2 metres") continue elif height > 6: print("Maximun height of 6 metres") continue lengthlist = list(map(float, input("Please enter the length of each wall sepirated by a space. Put spaces inbetween all numbers (Min. 2): \n\ ").split())) print(len(lengthlist)) if len(lengthlist) < 3: print("Please enter four numbers") continue else: len1 = lengthlist[0] * height len2 = lengthlist[1] * height len3 = lengthlist[2] * height len4 = lengthlist[3] * height area = len1 + len2 + len3 + len4 print("The total area is", area,"metres.") paintchoice = input('Please type which service do you want? \n\ Economy Quaility - £0.45 per square metre \n\ Standard quality - £1.00 per square metre \n\ Luxury quality - £1.75 per square metre \n\ ') undercoat = input('Do you want an undercoat paint for an additional £0.50/square metre? Y/N') if paintchoice.startswith('e'): price = area * 0.45 elif paintchoice.startswith('s'): price = area * 1 elif paintchoice.startswith('l'): price = area * 1.75 if undercoat.startswith('y'): newPrice = price + area * 0.5 elif undercoat.startswith('n'): newPrice = price print(price) print("The sub price is £",round(newPrice,2),". With VAT the final price will be:") vat = newPrice * 0.20 if undercoat.startswith('y'): print("£","%.2f" % round(vat,2),"to paint", area,"square metres with undercoat.") elif undercoat.startswith('n'): print("%.2f" % round(vat,2),"to paint", area,"square metres without undercoat.") #res = input('Restart the program? Y/N').lower() # if res.startswith('y'): # continue # elif res.startswith('n'): # break # else: # break