0% found this document useful (0 votes)
1 views

Python Programming

The document outlines an assignment for the Department of First Year Engineering for the academic year 2024-25, focusing on Python Programming. It consists of three modules with various tasks including writing Python code for user input, differentiating data types, file handling, and explaining concepts like dictionaries and error types. Each module contains specific coding exercises and theoretical questions to assess understanding of Python programming.

Uploaded by

kapil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Python Programming

The document outlines an assignment for the Department of First Year Engineering for the academic year 2024-25, focusing on Python Programming. It consists of three modules with various tasks including writing Python code for user input, differentiating data types, file handling, and explaining concepts like dictionaries and error types. Each module contains specific coding exercises and theoretical questions to assess understanding of Python programming.

Uploaded by

kapil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Department of First Year Engineering

Academic Year 2024-25


Assignment 1
Subject- Python Programming
Scheme- NEP2020 Course Code- VSEC202

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

You might also like