0% found this document useful (0 votes)
6 views2 pages

Basic Assignment Python

The document outlines a basic Python assignment consisting of 35 programming tasks. These tasks include operations such as swapping variables, calculating areas, finding averages, and checking properties of numbers and shapes. Each task requires user input and focuses on fundamental programming concepts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Basic Assignment Python

The document outlines a basic Python assignment consisting of 35 programming tasks. These tasks include operations such as swapping variables, calculating areas, finding averages, and checking properties of numbers and shapes. Each task requires user input and focuses on fundamental programming concepts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Basic Assignment Python-1

1. Enter any no. at runtime and creating swapping program using 3 rd


variable?
2. Enter any length and width of rectangle at runtime and find out
area of rectangle?
3. Enter any 5 different Subjects marks at runtime and find out
aggregate marks and average? Each subjects out of 100 marks?
4. Enter any radius of circle at runtime and find out area of circle?
5. Enter any no. of days at runtime and find out how many years,
how many months and how many remaining days?
6. Enter any no. at runtime and find out Square?
7. Enter any no. at runtime and find out Cube?
8. Check whether a given number is even or odd?
9. Check whether a given year is leap or not?
10. WAP to find maximum between two numbers?
11. WAP to find maximum among three numbers?
12. WAP to check whether a triangle is Equilateral, Isosceles or
Scalene?
13. WAP to check whether an alphabet is a vowel or consonant?
14. WAP to calculate profit and loss on a transaction?
15. WAP to check whether a number is positive, negative or
zero?
16. WAP to input week number and print week days?
17. WAP to input month number and print number of days in
that month?
18. WAP to display the first 10 natural number?
19. WAP to display natural number up to n?
20. WAP to display the sum of first 10 natural number?
21. WAP to display the sum of natural number up to n?
22. WAP to print even number between 1 to 100?
23. WAP to print odd number between 1 to 100?
24. WAP to print sum of even number between 1 to 100?
25. WAP to print sum of odd number between 1 to 100?
26. WAP to find the factorial of given number?
27. WAP to print the table of a given number?
28. WAP to print fibbonacci series?
29. WAP to count the digit of a given number?
30. WAP to find first and last digit of a given number?
31. WAP to calculate the sum of digit of a given number?
32. WAP to calculate the product of digit of a given number?
33. WAP to find the reverse of given number?
34. WAP to check whether a given number is palindrome or
not?
35. WAP to check whether a given number is prime or not?

You might also like