Python Program to Find the Area and Perimeter of a Rectangle | Tutorial

preview_player
Показать описание
In this tutorial you will learn How to write a Python Program to find the area and perimeter of a rectangle using width and length in Python Programming Language.

If you know the length and width of a rectangle then we can calculate the Area using the formula
Area = Width * Length

To calculate the Perimeter we use the formula
Perimeter = ( Length + Width ) * 2

Here in this program user will enter the length and width of the rectangle.

our Social Media Pages

Our Website

#ExampleProgram
Рекомендации по теме
Комментарии
Автор

2 min silence for those who are seeing this video one day before of computer exam 😂 and best of luck too👍

PS.
Автор

Thank you ! You saved my life at last moment in my AI Practical.

abhinavsharma
Автор

That's amazing man this help me a lot 😭🤝

anayandas
Автор

do more videos please on the basics of python

chukwunwikeakah
Автор

woah thank you so much, this helped me alot and i can finally understand :D if this video didnt exist i couldve probably failed in my CS subject

AparajitaLoh
Автор

thanks 👍 sir for helping us in last day of exams ☺️😊

manyaarora
Автор

if its not working for some reason like it happened i tweaked it little and it worked here it is..

width =float(input("Enter the width of the rectangle:"))
length =float(input("Enter the length of the rectangle:"))

A= width*length
P= (width + length) * 2

print("Area of the Rectangle is :", A )
print("Perimeter of the Rectangle is :", P )

abigail
Автор

Hi can I ask you what you mean when you write inside the print massage %.2 and then you type after that%area??

alaaalhogealy
Автор

Width = int(intput("enter the width of the rectangle : "))
Length = int(intput("enter the length of the rectangle: "))
area = length * width
Perimeter = ( length + width ) * 2
Print("area of rectangle is %.2f" %area )
Print("perimeter of rectangle is %.2f" %perimter )

vedantwanjari
Автор

Thank you sir for your help can you make more vedioes on phython.

raghvendrasingh
Автор

what about this one ??


height = float(input("Enter height rectangle : "))
width = float(input("Enter width of rectangle : "))
area = (height + width) * 2
print("Area of rectangle ", area)

mdanamulhaque
Автор

how to add a unit of the area? Like cm^2 .

Patrick-zhoi
Автор

how do i make it so that we can ask what we want for result like we want perimeter or area

mahamidmaid
Автор

Which python version are uu using plz tell

saritaprasad
Автор

Sir can u plz tell the output of rectangle

anatmarysanthosh
Автор

Sir isme Output mein
User name jo show ho rha h, wo kaise show ho rha h??
Mera nhi ho rha..
Pls sir help

grg.