Computer Science, asked by hani3679, 1 day ago

if I need to find the length and breadth of a rectangle without specify the values in the program, how can I execute the program by using input() (in Python programming).

rectangle_area=(input("Enter the length of a rectangle: ",l))
rectangle_area=(input("Enter the breadth of a rectangle: ",b))

so, I want to input the values of length and breadth and how can I tell Python that the first str is for variable 'l' and second one for variable 'b'.

I HOPE U UNDERSTAND MY QUESTION ;p

Answers

Answered by ArchBTW
1

Answer:

You can do like this

rectangle_area=int(input("Enter the length of a rectangle: ",l))

rectangle_area=int(input("Enter the breadth of a rectangle: ",b))

Explanation:

Similar questions