0

python help on making the program accept other values?

# Find the area and perimeter of a rectangle

import math

class Rectangle(object):

"""A 2D Recangle"""

def **init**(self, width = 1, height = 2):

self.width = width

self.height = height

def Perimeter(self):

"Return the Perimeter of the rectangle"

return (2 * self.width) + (2 * self.height)

def Area(self):

"Return the area of the rectangle"

return self.width * self.height

print("Enter your values")

width = input("width " "")

hieght = input("hieght " "")

R1 = Rectangle(1, 2)

print ('R1:', R1.Perimeter(), R1.Area())

here is what i have but i can not get the program to accept other values so i only get the the results from the default values.