“Data Analysis using Python”- KJK
Assignment Questions
Instructions:
• Take A4 papers on top of every paper you write your name and Roll Number.
• All questions are mandatory and each question carries 2 Marks.
• Submit all the assignments on 30-05-2025 (Friday).
1. Write a Python program to check if a number is even or odd using an if-
else statement.
2. Accept marks from the user and print the grade according to the
following rules:
• 90 and above: A
• 75-89: B
• 60-74: C
• Below 60: Fail
3. Write a Python program to find the greatest among three numbers
entered by the user.
4. Write a program to check whether a character entered is a vowel or
consonant.
5. Write a program to print the multiplication table of a number entered
by the user using a while loop.
6. Write a Python program to calculate the factorial of a number using a
for loop.
7. Create a list of numbers and write a loop to print only even numbers
from the list.
8. Write a Python function to add two numbers and return the result.
9. Write a function called is_prime(n) that checks if a number is prime.
[Link] a function that accepts a list of numbers and returns the
maximum value.