How to write area of rectangle input in Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to write area of rectangle input in Python

27th Jul 2018, 12:15 PM
Sandeep Singh
Sandeep Singh - avatar
2 Answers
+ 2
rectangle is simply Length * Width. Example Input: length = int(input("Length? ")) width = int(input("Width? ")) Example Output: print("Area is {}".format(length*width))
27th Jul 2018, 1:12 PM
LordHill
LordHill - avatar
27th Jul 2018, 12:31 PM
davy hermans
davy hermans - avatar