0% found this document useful (0 votes)
26 views1 page

Practical File Codes Set 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views1 page

Practical File Codes Set 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

List of Python Practical

Class X

1. Print the sum, product, difference, quotient and remainder after division, of two numbers
entered by the user.
2. Swap the values stored in two variables.
3. Calculate area and perimeter of square and rectangle (side to be accepted during execution)
4. Calculate circumference and area of a circle (radius to be accepted during execution)
5. Temperature conversion – Celsius to Fahrenheit and vice versa (choice of conversion and
temperature accordingly to be accepted at run time)
6. Calculate the Simple Interest
7. If user enters a multiple of 5, display its next five multiples otherwise display all odd
numbers less than this number.
8. If user name starts with first ‘A’ his name characters should be displayed vertically in order
of his name otherwise should be displayed in reverse order.
9. For each number entered by the user display number , its square , its cube (number should be
accepted till user says yes)
10. Print factorial of a number.
11. Print Fibonacci series till the number entered by the user
12. Print sum of first ‘n’ even numbers
13. Sum of the square of first n numbers:12+22+32+42+------n2
14. Generate a series in reverse order from n to 1.
15. Print the following pattern with the character of user’s choice :
*
**
***
**
*

You might also like