Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
Apply NowLogin using Social Account
     Continue with GoogleLogin using your credentials
Let's do some calculations with variables. We will write a code to calculate the area of a rectangle. The formula for calculating the area of rectangle is
Area = Height * Width
Create variables in the Jupyter notebook on the right-hand side. Press Shift + Enter
to run code in individual cells.
height
with the value 20
width
with the value 80
area_of_rectangle
and assign the formula for calculating the area to it.Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...