Internal Qs
Internal Qs
SET 1
1 A. Demonstrate the following Operators in Python with suitable examples vi) Ternary
Operator vii) Membership Operators viii) Identity Operators
2. Python program to compute the number of characters, words and lines in a file.
SET 2
SET 3
SET 4
SET 5
SET 6
1. Write a program to create, display, append, insert and reverse the order of the
items in the array.
2. Write a program to perform the given operations on a list:
a. Addition ii. Insertion iii. Slicing
SET 7
SET 8
1.Write a program to define a function using default arguments.
2. Write a program to create tuples (name, age, address, college) for at least two
members and concatenate the tuples and print the concatenated tuples.
SET 9
1. Write a program to count the number of vowels in a string (No control flow allowed).
2. Write a program to create, display, append, insert and reverse the order of the items
in the array.
SET 10
SET 11
SET 12
SET 13
Write a Python program to create a class that represents a shape. Include methods to
calculate its area and perimeter. Implement subclasses for different shapes like circle,
triangle, and square.