PYTHON ASSIGNMENT 3 - TUPLES



Write a program to generate the Fibonacci series up to N terms. Store the generated numbers in a tuple and display it.

Given a tuple containing city names, display the index, name and name length, Write a program to read two tuples and merge them without duplicates

Write a program to display elements from the first tuple that are not present in the second tuple

The second year of engineering offers the following subjects in two departments.
CSE = (“PQT”, “OS”, “SE”, “DPSD”)
IT = (“OS”, “PQT”, “DS”, “SE”)
Find
Number of subjects in CSE
Names of subjects in CSE only
Names of subjects in IT only
Number and names of subjects in both CSE and IT
Number and names of subjects for either CSE or IT, but not in both
Number and names of all subjects.

Read 5 student information (roll number, name and CGPA).
Find
Student having the maximum CGPA
Names of students having CGPA more than 7.5
Average CGPA of the students
Sort and display name list
Rank list

Consider the price list of various items in a retail store. A customer wants to know
Price of costliest item sold in the retail store
Display item and price list in increasing order of price
Display items in ascending order and the corresponding price
Average price of items in retail store

No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu