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

Python Assignment For 3rd Sem

Uploaded by

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

Python Assignment For 3rd Sem

Uploaded by

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

BIDHAN CHANDRA COLLEGE, RISHRA

Dept. of Computer Science


[Practical Assignment List]
Semester: IV Subject: CMSG Session: 2021-2022
Paper: CMS-G-CC-3-3-P: Programming using Python Teacher’s Name: RIMPI SAHA
SL No. Program List Date
1. Write a program in python to calculate the average of five numbers.

2. Write a program in python to create a basic calculator using switch case.

Write a program in python to check whether the given number is odd or


3. even.
Write a program in python to check whether the given year is leap year or
4. not.

5. Write a program in python to find the sum of digit of a given number..

6. Write a program in python to find the multiplication table of a given number.

Write a Python Program to read a number n and print and compute the series
7. “1+2+…+n=”.
Write a Python Program to read a number n and print and compute the series
8. “1+4+7+10…+n=”.
Write a Python Program to read a number n and print and compute the series
9. “5+10+15+…+n=”.

10. Write a program in python to calculate the factor of a given number.

Write a program in python to check whether a given number is prime or


11. composite.

12. Write a program in python to calculate the Prime factor of a given number.

Write a program in python to check whether a given number is perfect


13. number or not.
Write a program in python to find the reverse of a given number and also
14. check the number is palindrome or not.
Write a program in python to calculate the Prime number between given
15. range.

16. Write a program that takes two numbers and prints the LCM of two numbers.

17. Write a program that takes two numbers and prints the GCD of two numbers.

18. Write a program in python to find the factorial of a given number..

19. Write a program in python to generate Fibonacci series up to nth terms.

20. Write a program in python to check the number is amstrong or not.

21. Write a program in python to calculate the perimeter in circle using math.pi
Write a program in python to input three positive integers a, b, and c , using
22. Pythagorean triples formula ( a2+ b2 =c2.) to generate all Pythagorean triples
in a certain range.
23. Write a program in python to check the number is Krishnamurthy or not.

Write a program in python to print the pattern of given below:


24. 12345
1234
123
12
1
Write a program in python to print the pattern of given below:
25. *****
****
***
**
*
Write a program in python to print the pattern of given below:
26. 54321
4321
321
21
1

27. Write a program in python to print the floyed triangle.

28. Write a program in python to print the Pascal triangle.

Write a program to take a string as input and counts the number of vowels in a
29. string.

30. Write a program to check whether a string is a palindrome or not.

Write a program in python to accept three digits and print all possible
31. combination
Write a program in python to check whether a number is Pythagorean
32. triplets or not.
Write a program in python to take three inputs from the user and print the 1st
33. one in reverse and the 2nd string converted to upper case and the 3rd string
converted to lower case.

34. Write a program in python to ask user for two string and concatenate them.

Write a program in python to take two strings as input from the user and
35. print the 1st one twice and the other one thrice

36. Write a program in python to sort a list in Bubble sort method.

37. Write a program in python to sort a list in Selection sort method.

Write a program in python to Use list comprehension to find all the odd
38.
numbers and numbers divisible by 3 from a list of numbers.

You might also like