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
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
History,
16 hours ago
English,
1 day ago
CBSE BOARD X,
8 months ago
Social Sciences,
8 months ago
Geography,
8 months ago