PDS Set 1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Government Engineering College, Patan

Computer Science & Engineering


Python for Data Science
(Open Elective - 3150713)
Practical List (Set-1)

Set-1(CO-1): Python Programming with Array, List, Dictionary

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.

You might also like