PRACTICAL EXAM
FY BSC CS SEM 1 30 Mins
Subject PYTHON TOTAL MARKS: - 20
Attempt All Questions
Q1. Write a Python program to check given number is prime or not
prime.
Q2. Write a Python program to compute the difference between two lists.
Sample data: ["red", "orange", "green", "blue", "white"], ["black", "yellow", "green",
"blue"]
Expected Output:
Color1-Color2: ['white', 'orange', 'red']
Color2-Color1: ['black', 'yellow']
Q3. Write a python program to check given string is palindrome or not
palindrome