0% found this document useful (0 votes)
50 views

Programming Assignment 2

This document contains instructions for an assignment in Python programming for students in the 3rd semester of B.Tech in ECE, ME or CE at JSS Academy of Technical Education, Noida. It lists 15 programming problems to solve including writing programs to find the factorial of a number, print the Fibonacci series up to n terms, print patterns, check for a leap year, find prime numbers in an interval, compute HCF, get a substring, count occurrences in a list, reverse a number, compute power, count digits in a number, count occurrences of a character in a string, remove duplicates from a list, check for a palindrome, and find the largest number in a list.

Uploaded by

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

Programming Assignment 2

This document contains instructions for an assignment in Python programming for students in the 3rd semester of B.Tech in ECE, ME or CE at JSS Academy of Technical Education, Noida. It lists 15 programming problems to solve including writing programs to find the factorial of a number, print the Fibonacci series up to n terms, print patterns, check for a leap year, find prime numbers in an interval, compute HCF, get a substring, count occurrences in a list, reverse a number, compute power, count digits in a number, count occurrences of a character in a string, remove duplicates from a list, check for a palindrome, and find the largest number in a list.

Uploaded by

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

JSS Mahavidyapeetha

JSS Academy of Technical Education, Noida


B.Tech., IIIrd Sem (ECE/ME/CE)
Python Programming (KNC -302)
Assignment 2- AY 2022-23

1. Write a python program to find the factorial of a number.


2. Write a python program to print fobonacci series up to n terms.
3. Write puthon program to print following patterns.
a)

*
* *
* * *
* * * *
* * * * *
b)
*
**
***
****
*****
4. Python Program to Check Leap Year
5. Python Program to Print all Prime Numbers in an Interval
6. Python Program to Find HCF or GCD
7. Python Program to Get a Substring of a String
8. Python Program to Count the Occurrence of an Item in a List.
9. Python Program to Reverse a Number
10. Python Program to Compute the Power of a Number.
11. Python Program to Count the Number of Digits Present In a Number
12. Python Program to Count the Number of Occurrence of a Character in String
13. Python Program to Remove Duplicate Element From a List.
14. Python program to check if a string is palindrome or not.
15. Python program to find largest number in a list.

You might also like