Question: PART - A ( 3 . 5 marks ) I. Q 1 . Write a python program to input a integer ( m ) and

PART - A (3.5 marks)
I.
Q 1. Write a python program to input a integer(m) and perform the operation as shown in the table using if elif else
[2]
Value of m operation
5 Input 2 marks and find the average and display
8, Input 2 marks and find the maximum and display
Any other letter Display error
Q 2. Define a Python function to receive width and height of a rectangle, calculate and return the area. Call this function and display the area.
PART - B (4 marks)
Q 3. Write a python program to find the sum of the following series using while loop.
6x+6x+4+6x+8+6x+12
Q4. Write a program to create a list consisting of 10 numbers from keyboard (using [2.5] append function and for loop). Using the for loop again in the list, display only the numbers that are greater than 25.
PART - A ( 3 . 5 marks ) I. Q 1 . Write a python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!