Testing variable types in Python
- by Jasper
Hello,
I'm creating an initialising function for the class 'Room', and found that the program wouldn't accept the tests I was doing on the input variables.
Why is this?
def __init__(self, code, name, type, size, description, objects, exits):
self.code = code
self.name = name
self.type = type
self.size = size
self.description…