
"""
Define a class named Rectangle, which can be constructed by a length and width.
The Rectangle class needs to have a method that can compute area.
Finally, write a unit test to test this method.
"""
import random

class rectangle():

    def __int__(self, width, length):
        self.width=width
        self.length=length

    def area():
        return length*width


length=random.randint(1,100)
width=random.randint(1,100)


92bc95604d982256a602ef749f090b63b4f47555
<mask token>


class rectangle:
    <mask token>
    <mask token>


<mask token>

<mask token>


class rectangle:
    <mask token>

    def area():
        return length * width


<mask token>

<mask token>


class rectangle:

    def __int__(self, width, length):
        self.width = width
        self.length = length

    def area():
        return length * width


length = random.randint(1, 100)
width = random.randint(1, 100)

<mask token>
import random


class rectangle:

    def __int__(self, width, length):
        self.width = width
        self.length = length

    def area():
        return length * width


length = random.randint(1, 100)
width = random.randint(1, 100)


"""
Define a class named Rectangle, which can be constructed by a length and width.
The Rectangle class needs to have a method that can compute area.
Finally, write a unit test to test this method.
"""
import random

class rectangle():

    def __int__(self, width, length):
        self.width=width
        self.length=length

    def area():
        return length*width


length=random.randint(1,100)
width=random.randint(1,100)

