Python Lab Internal QP
Python Lab Internal QP
(AUTONOMOUS)
Department of AIML
II B. Tech III Semester Internal Laboratory Examinations Nov-24
Subject: Python Programming (23AM3S01) Date 13-11-2024
TIME: 3 Hours Branch: CSE-DS Section: A Max. Marks: 15
Answer any one of the following Programs
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.
10. a) Python program to check whether a JSON string contains complex object or not.
11. a)Python Program to demonstrate NumPy arrays creation using array () function.
b) Python program to demonstrate use of ndim, shape, size, dtype.
12 . a) Write a program to sort words in a file and put them in another file. The output file should have only
lower-case words, so any upper-case words from source must be lowered.
b) Python program to print each line of a file in reverse order.
SCHEME OF EVALUATION