Nov-12-2019, 09:16 PM
Look on line 29 of your classes file. You define five arguments to the __init__ for the Realtor class: username, phone_number, city, suburb, and rooms. Then on line 107 in main.py, you only have three input statements to generate those arguments. It appears you are not supplying username or phone_number, so you need to supply those from somewhere.
Using inputs when calling the class is kind of odd. I would gather the inputs separately, and then create the instance:
Using inputs when calling the class is kind of odd. I would gather the inputs separately, and then create the instance:
city = input("What city?: ").capitalize() suburb = input("What suburb?: ").capitalize() rooms = input("How manny rooms?: ").capitalize() find = Realtor(username, phone_number, city, suburb, rooms)
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures