Python Programming
Python Programming
Module 1
1. Write a python code to take any input from the user and print it.
2. Differentiate between list and tuple.
3. Write a python code to sort the elements of list.
4. Convert the following tuple into the list using python code.
tuple1 = (11,22,33,44,55)
5. Explain the Python Dictionaries with example.
Module 2
1. Write a python code to find out the greater number between three numbers.
2. Write a python code to Print the word “HELLO” five times using while loop
3. Insert the elements into the list using for loop.
4. Check the following code and tell that variable c is printable or not. Justify your answer as well.
def abc():
c=10
abc()
print(c)
5. Write a python function which performance addition operation of two numbers. Also return the answer at the end
of the function.
Module 3
1. Write the various modes in file handling and also explain use of all modes.
2. Write a python code to create a new file and write text into that file
3. Write a python code to create a package
4. Write a python code to print the file content line by line.
5. Explain the following terms
a) Syntax Errors
b) Runtime Errors