As you can see by my code, I'm trying to create a program of a Carpet fitting service! But I'm not sure why it stops when it gets to the second function! Can you analyse my code and try to show me what is wrong? I fear that you will only understand my problem if you see the rest of the code. Keep in mind, I am a very new beginner.
Problem (in code - i cannot locate it):
https://pastebin.com/SWMYEAfE
Output:
This is Carpet Diem Carpets and we hope we are able to help you today!
We first need your personal details, so can you please choose your title.
Mr, Mrs, Miss, Ms, Dr, Lady or Lord?Lord
Well, what is your last name, Lord?
>>Test
Here at Carpet Diem Carpets...
We offer a variety of different levels of quality -
With varying prices, of course, Lord Test!
We can fit your carpets at £6.50 per square meter - the Basic level.
Standard for £18.75.
And, for those who like to live as the very best, Luxury for £29.50!
There is also a 3.75 fee per square meter.
How many rooms do you want 'carpeted'?
>>3
Traceback (most recent call last):
File "C:\Users\mikec\OneDrive - Ilford County High School\Computing HW.py", line 144, in <module>
loopquality()
File "C:\Users\mikec\OneDrive - Ilford County High School\Computing HW.py", line 28, in loopquality
for x in range(nor):
TypeError: 'function' object cannot be interpreted as an integer
>>>