Programming in Python
Programming in Python
Programming in Python:
1 Create a dictionary containing names of competition winner students as keys and
number of their wins as values.
2 Write a program that receives two numbers in a function and returns the results of all
arithmetic operations on these numbers.
APRIL
4 Write a random number generator using functions that generates random numbers
between 1 and 6 (simulates a dice).
5 Open a webpage using the urllib library.
7 To display the number of lines in the file and size of a file in bytes.
8 Remove all the lines that contain the character `a' in a file and write it to another file.
9 To get rnos ,names and marks of the students of a class and store these details in a file
called "Marks.dat".
10 Recursively find the factorial of a natural number.
14 Create a graphical application that accepts user inputs, performs some operation on
them, and then writes the output on the screen. e.g. a small calculator. (use tkinter
library)
AUGUST
15 Write a Python program to plot the function y = x2 using the pyplot or matplotlib libraries.
17 Write a Python function sin(x, n) to calculate the value of sin(x) using its Taylor series
expansion up to n terms. Compare the values of sin(x) for different values of n with the
correct value.
SEPTEMBER
marks.
22 Find the total number of customers from each country in the table (customer ID,
customer name, country) using group by.
23 Write a Django based web server to parse a user request (POST), and write it to a CSV
file.
24 Integrate SQL with Python by importing the MySQL module
NOV
25 Take a sample of 10 phishing e-mails and find the most common words.
PROJECT WORK