Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 Aim 1. Write a Python program to read the length and breadth of 1 rectangle. Calculate the area of the rectangle as: length *

image text in transcribed
1 Aim 1. Write a Python program to read the length and breadth of 1 rectangle. Calculate the area of the rectangle as: length * breadth If the area is less than 60sq.m and breath is less than 10, print 'Small rectangle If the area is between 60sq.m and 500 sq.m, and length is more than 20, then print 'Long Rectangle. Else print 'Normal 2. Write a Python program to accept 2 numbers. If both the numbers are even, calculate the square of number 1 using pow() method and cube of number 2 using exponent operator. If both the numbers are odd, calculate their product. If any one number is even, calculate their difference

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions

Question

1. Which is the most abundant gas presented in the atmosphere?

Answered: 1 week ago

Question

7. Senior management supports the career system.

Answered: 1 week ago