Professional Documents
Culture Documents
PDS Set 1
PDS Set 1
PDS Set 1
1 Write a program in python to read two strings and display them on console. Use input ()
functions.
2 Python Program to Print first N Fibonacci numbers
3 Python Program To check whether entered number is palindrome or not.
4 Write a Python program to check if the number provided by the user is an Armstrong
number. Perform it with and without user defined function.
5 Write a Python program to print all Prime numbers in an Interval using user defined
function
6 Python Program for rotate the elements of array.
7 Python Program to Split the array and add the first part to the end of second part.
8 Python Program to check if given array is Monotonic or not.
Input : 6 5 4 4
Output : true
Input : 5 15 20 10
Output : false
9 Python program to print even numbers and duplicate from a list
10 Python program to find N largest elements from a list
Input : [4, 5, 1, 2, 9]
N=2
Output : [9, 5]
Input : [81, 52, 45, 10, 3, 2, 96]
N=3
Output : [81, 96, 52]
11 Write a program to create a dictionary of student details and perform basic operation on
it.