0% found this document useful (0 votes)
13 views9 pages

Assignments On Fundamentals of Python

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

Assignments On Fundamentals of Python

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

VISHWAKARMA INSTITUTE OF

TECHNOLOGY, PUNE
Department of Engineering, Sciences and Humanities
FYBTECH – 2024-2025 -SEM 1
PYTHON FOR ENGINEERS

ASSIGNMENT NO 63
1) Title: To keep record of
students’ data, manipulate files to store, update,
and delete students’ information.

2) Program Source Code:


VISHWAKARMA INSTITUTE OF
TECHNOLOGY, PUNE
Department of Engineering, Sciences and Humanities
FYBTECH – 2024-2025 -SEM 1
PYTHON FOR ENGINEERS

3) Output:

ASSIGNMENT NO 64
1) Title: Write a Python program
that reads the content of a text file and prints
it to the console.

2) Program Source Code:


VISHWAKARMA INSTITUTE OF
TECHNOLOGY, PUNE
Department of Engineering, Sciences and Humanities
FYBTECH – 2024-2025 -SEM 1
PYTHON FOR ENGINEERS

3) Output:

ASSIGNMENT NO 65
1) Title: Create a Python program
that takes user input (a string) and writes it to
a new text file.
2) Program Source Code:

3) Output:

ASSIGNMENT NO 66
1) Title: Write a Python program
that reads a text file, counts the number of
VISHWAKARMA INSTITUTE OF
TECHNOLOGY, PUNE
Department of Engineering, Sciences and Humanities
FYBTECH – 2024-2025 -SEM 1
PYTHON FOR ENGINEERS

words in it, and writes the word count to a new


file.
2) Program Source Code:

3) Output:

ASSIGNMENT NO 68
1) Title: Develop a Python program
that counts the number of lines in a text file
and displays the count.
VISHWAKARMA INSTITUTE OF
TECHNOLOGY, PUNE
Department of Engineering, Sciences and Humanities
FYBTECH – 2024-2025 -SEM 1
PYTHON FOR ENGINEERS

2) Program Source Code:

3) Output:

ASSIGNMENT NO 69
1) Title: Write a Python program
that appends a user-provided string to the end
of an existing text file.
VISHWAKARMA INSTITUTE OF
TECHNOLOGY, PUNE
Department of Engineering, Sciences and Humanities
FYBTECH – 2024-2025 -SEM 1
PYTHON FOR ENGINEERS

2) Program Source Code:

3) Output:

ASSIGNMENT NO 70
1) Title: To keep record of patients’
medical data, manipulate files to store,
update, and delete such information.
VISHWAKARMA INSTITUTE OF
TECHNOLOGY, PUNE
Department of Engineering, Sciences and Humanities
FYBTECH – 2024-2025 -SEM 1
PYTHON FOR ENGINEERS

2) Program Source Code:


VISHWAKARMA INSTITUTE OF
TECHNOLOGY, PUNE
Department of Engineering, Sciences and Humanities
FYBTECH – 2024-2025 -SEM 1
PYTHON FOR ENGINEERS

3) Output:
VISHWAKARMA INSTITUTE OF
TECHNOLOGY, PUNE
Department of Engineering, Sciences and Humanities
FYBTECH – 2024-2025 -SEM 1
PYTHON FOR ENGINEERS
Assignment 2: Program to Swap Two Variables

Program:

Input/Output:

You might also like