DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
1ST ASSIGNMENT
1. Write a python program that prints a number1 to 10 using for loop and then write a equivalent
program to print a number from 1 to 10 using while loop
2. Write a python program for addition of 2 number using functions
3. Write a python program to check a given number is palindrome or not
4. Explain the following
A. Insert b. Append c. sort d. Reverse e.len() f. Random module.
5. Define dictionaries and also explain the methods in dictionaries
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
2nd ASSIGNMENT
1. Define list and also explain the conversion of list to tuples
2. Explain the following
Startswith() endswith() rjust() ljust()
3. Write a python program to find sum and avg of list
4. Write a python program to find all duplicate char in a string using loop with dictionaries
5. Briefly explain about file reading and writing process.