Please helpme! with python homework


#1

My teacher gives the python assignment to Create a code that asks the user to pick a shape: Circle, Rectangle, or Triangle. Then ask the user to input the dimensions for the shape
Calculate and print the perimeter + area. My code have the problem TypeError: rectangle_area() missing 2 required positional arguments: 'b' and 'h'


#2

Error:

TypeError: rectangle_area() missing 2 required positional arguments: 'b' and 'h'

you took two parameters ( b and h)for rectangle_area() function but you didn't pass any arguments for it.you have to call this function with two arguments.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.