0% found this document useful (0 votes)
40 views3 pages

Animation

all question

Uploaded by

harshalmore38
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views3 pages

Animation

all question

Uploaded by

harshalmore38
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

1 Write a program to check whether a number is divisible by 7 or not.

2 write a program to check whether a person is eligible for voting or not


(accept age from user)
Python function
3 Write a function that inputs a number and prints the multiplication table of
that number
4 Write a function that converts a decimal number to binary number
Python Barrier
5 1. Write Program to Create and start multiple threads, each representing a
runner, and have them call the runner function.
6 1. Write Program to Create a Barrier object with the appropriate number
of parties (stages).
Python String
7 Write a Python program to check if a string is a palindrome.
8 Write a Python program to find the most frequent character in a string.
Python Operator
9 Write a program that takes 2 numbers as command line arguments and prints its
sum.
10 Implement python script to show the usage of various operators available in
python language.
Python List
11 Write a program to remove duplicates from list using Python.
12 Write a program to copy a list in Python using various methods.
Python Comprehension
13 Write a program to generate an Even list without using List comprehensions
14 Write a program to demonstrate list comprehension in Python
Python Tuples
15 Write a Python program to find Tuples with positive elements in List of
tuples
16 Write a Python program to join tuples if similar initial element
Python Set
17 Write a program to check if a set contains an element in Python
18 Python Program to Find Duplicate sets in list of sets
Python Dictionaries
19 Write a Python Program to Safely Create a Nested Directory
20 Write a Python Program to Sort a Dictionary by Value
Python For Loop and While Loop
21 Write a program that calculates the sum of all even numbers between 1 and 100
(inclusive). Use a for loop to iterate through the numbers and accumulate the sum.
22 Write a program that uses a for loop to iterate through the list and print
each number multiplied by 5, but only if the number is greater than 10.
Python Class and Object
23 Create a Python class called UserAuthentication that provides a secure and
efficient way to manage user authentication for an application. The class should
handle user registration, login, and password reset functionality.
24 Create a Python object that represents a car. The car object should have the
following attributes and methods: Attributes:
• make: the manufacturer of the car (e.g., "Toyota", "Honda", "Ford")
• model: the specific model of the car (e.g., "Camry", "Civic", "Mustang")
• year: the year the car was manufactured
• color: the color of the car
• mileage: the current mileage of the car
• fuel_level: the current fuel level of the car
Python User Input
25 Write Python program that serves as an interactive mortgage calculator. The
program should prompt the user for the following inputs:
• Loan Amount: the total amount of the mortgage loan
• Annual Interest Rate: the annual interest rate for the mortgage
• Loan Term: the duration of the mortgage in years
26 Write Python program, user should be able to input their weight (in
kilograms) and height (in meters). The program should then calculate and display
the user's BMI,
Python polymorphism
27 Write a Python program that calculates the area of various geometric shapes.
Three classes: Circle, Rectangle, and Triangle, each representing a different
shape, using python polymorphism.
28 You have three classes: Dog, Cat, and Cow, each representing a different
animal. Each animal class should have a make_sound() method that prints the sound
the animal makes. Write a program to create instances of each animal class and
store them in a list. Then, iterate through the list and call the make_sound()
method for each animal. The output should be the sounds made by each animal.
Python Libraries
29 Write a program that allows the user to perform basic file operations, such
as creating, copying, moving, and deleting files and directories.
30 Write a program that reads a CSV file containing sales data, calculates the
total sales for each product, and saves the results to a new CSV file.
31 Write a program:
• to check if a number is prime or not.
• to find the factorial of a number.
• to print the first N Fibonacci numbers.
32 Write a Python program that calculates the sum of all numbers from 1 to N,
where N is a user input.
33 Write a program to print the multiplication table of a given number.
34 Write a Python program that takes a list of numbers from the user and prints
the list in reverse order.
35 Write a program to reverse a string.
36 Implement Python Script to generate prime numbers of series up to n
37 Write a program to:
• find the largest and smallest element in a list.
• find the common elements between two lists.
• find the frequency of each element in a list
38 Write a Python program that checks if a person is eligible to vote. The user
will enter their age, and the program will print whether they are eligible to vote
(age 18 or older).
39 Write a program to:
• sort a list of numbers in ascending or descending order.
• find the average of numbers in a list.
40 Write a Python program that categorizes a person's BMI (Body Mass Index)
based on their weight (in kg) and height (in meters):
41 Write a program to find the area and perimeter of a circle.
42 Write a program to calculate area of a Triangle
43 Write a program to print all the prime numbers within a given range.
44 Python Program to Print all Prime Numbers in an Interval
45 Create a NumPy array and perform basic operations such as addition,
subtraction, multiplication and division.
46 Write a program to save and load single NumPy Array File
47 Create a NumPy array with random values and find the minimum, maximum, mean,
and standard deviation.
48 Write program to create two matrices in NumPy and perform multiplication
49 Load a CSV file into a Pandas Data Frame and perform basic operations such as
selecting columns, filtering data, and aggregating data.
50 Write a program to create Pandas Data Frame Using Python Dictionary
51 Use Pandas group by function to group data by one or multiple columns and
perform operations such as mean, sum, or count.
52 Write a program that reads a Pandas DataFrame containing employee data (name,
department, salary) and allows the user to filter the data based on a specific
department and sort the results by salary in ascending or descending order.
53 Use Pandas to clean and preprocess data by handling missing values, outliers,
and transforming data.
54 Assume Pandas DataFrame containing customer information, including email
addresses. Write a program that identifies and removes any duplicate rows, handles
missing values, and ensures that all email addresses are in a valid format.
55 Plot data using Pandas and Matplotlib library to visualize trends and
patterns in the data
56 The company has sales data for different product categories. Use Pandas to
create a Data Frame with the total sales for each product category. Then, use
Matplotlib to create a bar chart that compares the sales performance of the
different product categories.
57 Use Pandas to create a DataFrame that groups the sales by month, and then use
Matplotlib to create a line plot that shows the seasonal sales trends throughout
the year.
58 Write a program that generates a line plot to display the relationship
between two variables. The user should be able to provide the x-values and y-
values, and the program should plot the data and display the plot.
59 Write a program that generates a scatter plot to visualize the relationship
between two variables. The user should be able to provide the x-values and y-
values, and the program should create the scatter plot and display it.
60 Write a program that generates a histogram to display the distribution of a
dataset. The user should be able to provide the data, and the program should create
the histogram and display it.
61 Write a program to find the area and perimeter of circle.
62 Write a program to Check if a year is a leap year or not?
63 Write a program to Create a NumPy array and perform basic operations such as
addition, subtraction, multiplication and division.
64 Write a program to Create a NumPy array with random values and find the
minimum, maximum, mean, and standard deviation.
65 Load a CSV file into a Pandas DataFrame and perform basic operations such as
selecting columns, filtering data, and aggregating data.
66 Use Pandas groupby function to group data by one or multiple columns and
perform operations such as mean, sum, or count.
67 Use Pandas to clean and preprocess data by handling missing values, outliers,
and transforming data.

You might also like