A piece of wire is to be bent in the form of a rectangle to put
around a picture frame. The length
of the picture frame is 1.5 times the width. Write a program that
asks the user to enter the length
of the wire and outputs the length and width of the picture
frame.
Can you do this in python, please?
""" Python program for length and width calculator """ length = float(input('Enter length: ')) width = length/1.5 print('The length of the picture frame is:', length) print('The width of the picture frame is:', width)
Get Answers For Free
Most questions answered within 1 hours.