NS RAJU INSTITUTE OF ENGINEERING & TECHNOLOGY::VISAKHAPATNAM
(Approved by AICTE, New Delhi, Affiliated to JNTUGV)
Dakamarri, Visakhapatnam – 531 162
II [Link] I Semester (R23) – Lab Internal Examinations for Descriptive
Python Programming Lab
Date: BRANCHES: CSE, CSM, ECE & MECH Duration: 180 min.
1. a) Write a program to find the largest element among three Numbers.
b) Write a program to swap two numbers without using a temporary variable.
2. Demonstrate the following Operators in Python with suitable examples.
i) Arithmetic Operators ii) Relational Operators
3. Demonstrate the following Operators in Python with suitable examples.
i) Assignment Operators ii) Logical Operators iii) Bit wise Operators
4. a) Write a Program to display all prime numbers within an interval
b) Write a program to add and multiply complex numbers
5. a) Write a program to print multiplication table of a given number.
6. Write a program to find the length of the string without using any library functions.
7. Write a program to define a function with multiple return values.
8. Write a program to define a function using default arguments.
9. Write a program to find the length of the string without using any library functions.
10. Write a program to check if the substring is present in a given string or not.
11. Write a program to perform any 3 built-in functions by taking any list.
12. b) Write a program to create tuples (name, age, address, college) for at least two members
and concatenate the tuples and print the concatenated tuples.
a) Write a program to count the number of vowels in a string (No control flow allowed).
13. a) Write a program to check if a given key exists in a dictionary or not.
b) Write a program to add a new key-value pair to an existing dictionary.
14. Python program to print each line of a file in reverse order.
15. a) Python Program to demonstrate NumPy arrays creation using array () function.
b) Python program to demonstrate use of ndim, shape, size, dtype.
Internal Examiner HOD