Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
609 views

Practical List of Python-2022

The document provides a list of 20 practical Python programming exercises divided into two sections - Execution Programs and Writing Program. The Execution Programs section includes exercises to convert temperatures between Fahrenheit and Celsius, calculate exponents, sort and remove duplicates from a list of numbers, calculate student grades and percentages, calculate averages, calculate areas of shapes using functions, evaluate series, print dates and times, and perform matrix operations. The Writing Program section includes exercises involving recursion, finding the second largest number without sorting, printing prime numbers, demonstrating inheritance and method overriding, generating Fibonacci series, using buttons, radio buttons, list boxes, and checkboxes.

Uploaded by

Sara Rai
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
609 views

Practical List of Python-2022

The document provides a list of 20 practical Python programming exercises divided into two sections - Execution Programs and Writing Program. The Execution Programs section includes exercises to convert temperatures between Fahrenheit and Celsius, calculate exponents, sort and remove duplicates from a list of numbers, calculate student grades and percentages, calculate averages, calculate areas of shapes using functions, evaluate series, print dates and times, and perform matrix operations. The Writing Program section includes exercises involving recursion, finding the second largest number without sorting, printing prime numbers, demonstrating inheritance and method overriding, generating Fibonacci series, using buttons, radio buttons, list boxes, and checkboxes.

Uploaded by

Sara Rai
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Practical List of Python-2019

Execution Programs
1. Write a Python program to convert the given temperature from Fahrenheit to Celsius and vice
versa depending upon user’s choice.
2. Write a Python program that allows the user to enter any integer base and integer exponent,
and displays the value of the base raised to that exponent.
3. Write a Python program to input any 10 numbers and display the unique numbers in sorted
order after removing the duplicate entries.
4. Write a Python program to calculate total marks, percentage and grade of a student. Marks
obtained in each of the three subjects are to be input by the user. Assign grades according to
the following criteria:
Grade A: Percentage >=80
Grade B: Percentage>=70 and <80
Grade C: Percentage>=60 and <70
Grade D: Percentage>=40 and <60
Grade E: Percentage<40

5. Write a program to input any 10 numbers and calculate their average using user defined
function.
6. Write a Python program to find the area of rectangle, square, circle and triangle by accepting
suitable input parameters from user using user-defined function.
7. Write a Python program to Print and evaluate the following series. The series is --
Sum = (x)-(x^2/2!) )+(x^3/3!) )-(x^4/4!) +(x^5/5!) )- ………………..
8. Write a program to print current date and time. In addition to this, print each component of
date (i.e. year, month, day) and time (i.e. hours, minutes and microseconds) separately.
9. Write a Python program to calculate the subtraction of two compatible matrices.
10.Write a Python program to calculate the addition of diagonal elements of a matrix.
Writing Program

1. Write a Python program to search a given string from the list of strings using recursion.
2. Write a Python program to input any 10 numbers and find out the second largest number
without using sort function.
3. Write a program to print first 10 prime numbers.
4. Write a program to demonstrate the concept of inheritance in python.
5. Write a program to demonstrate the concept of method overriding in python.
6. Write a Python program to print Fibonacci series for n terms using generator.
7. Write a program to create three buttons labeled as red, green and blue respectively.
Background color of the window should be change accordingly when user click on the
button.
8. Write a program for gender selection using radio button. When the user clicks on submit
button it should display the selected gender on a label.
9. Write a program to select a course from list box. When the user clicks on submit button, it
should display the message about selected course.
10.Write a program that allows the user select the items using checkbox. When the user clicks
on submit button it should display the selected items name.

You might also like