0% found this document useful (0 votes)
6 views

Python lab list

The document outlines a series of Python programming tasks aimed at teaching fundamental concepts such as data types, mathematical operations, file handling, and GUI applications using Tkinter. It includes exercises on set operations, distance conversions, string analysis, and data visualization. Additionally, it involves analyzing datasets, including GDP and FAA data, using Python libraries like Pandas.

Uploaded by

34Shreya Chauhan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Python lab list

The document outlines a series of Python programming tasks aimed at teaching fundamental concepts such as data types, mathematical operations, file handling, and GUI applications using Tkinter. It includes exercises on set operations, distance conversions, string analysis, and data visualization. Additionally, it involves analyzing datasets, including GDP and FAA data, using Python libraries like Pandas.

Uploaded by

34Shreya Chauhan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Python lab list

1. Write python programs to understand expressions, variables,


quotes, basic math operations, list, tuples, dictionaries, arrays etc.

Write Python program to implement byte array, range, set and

different STRING Functions (len, count, lower, sorted etc).(introduction to


python )

2. (A) Assume a suitable value for distance between two cities (in km).
Write a program to convert and print this distance in meters, feet,

inches and centimetre.

(B)Write a program to carry out the following operations on the given

set

s = {10, 2, -3, 4, 5, 88}

a. Number of items in sets s

b. Maximum element in sets s

c. Minimum element in sets s

d. Sum of all elements in sets s

e. Obtain a new sorted set from s, set s remaining unchanged

f. Report whether 100 is an element of sets s

g. Report whether -3 is not an element of sets s.

3. Write python program to understand different File handling

Operations

4. Create 3 lists a list of names, a list of ages and a list of salaries.


Generate and print a list of tuples containing name, age and salary

from the 3lists. From this list generate 3 tuples one containing all

names, another containing all ages and third containing all salaries.

5. If any integer is given as in input through the keyboard, write a

program to find whether it is odd or even number.

6. Write a program that defines a function count_lower_upper( ) that

accepts a string and calculates the number of uppercase and lowercase

alphabets in it. It should return these values as a dictionary. Call this

function for some sample strings.

7.Write Python program for histogram equalization.

8.(A) Write a program to display image,convert it to grey image and display

Negative of the image

(B).write a program for edge detection

9.(A) Write a python program to implement pack ,place,grid,canvas application


using Tkinter.

(B). Write Python program to implement GUI Canvas application using

Tkinter

10. Evaluate the dataset containing the GDPs of different countries.

11. Analyze the Federal Aviation Authority (FAA) dataset using Pandas

to do the following.

You might also like