0% found this document useful (0 votes)
127 views1 page

Python Practical

The document contains instructions for 3 Python programming assignments: 1) Write a script to calculate the sum of elements in a list and produce a new list with each element equal to the sum of elements from the original list. 2) Write a script to print and write to a file all prime numbers within a user-entered range. 3) Write a script to check if a user-entered number is an Armstrong number. Also find the first 3 Armstrong numbers in a given range, displaying an appropriate message if none are found.

Uploaded by

bhavana16686
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
127 views1 page

Python Practical

The document contains instructions for 3 Python programming assignments: 1) Write a script to calculate the sum of elements in a list and produce a new list with each element equal to the sum of elements from the original list. 2) Write a script to print and write to a file all prime numbers within a user-entered range. 3) Write a script to check if a user-entered number is an Armstrong number. Also find the first 3 Armstrong numbers in a given range, displaying an appropriate message if none are found.

Uploaded by

bhavana16686
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 1

Enrollment No: ____________________

DEPARTMENT OF COMPUTER SCIENCE


ISHLS

Branch & Semester : Int.M.Sc(CA&IT)–VII/M.Sc-IT–I/Int. MCA-VII/MCA Total Marks: 40


End Semester Practical Examination (Nov/Dec 2019)
Subject Code & Name : IMSC0705/MSC0109/IMCA0708/MCA-312 - Introduction to Python
Date & Day : 04th November -2019 Wednesday

Write a python script to calculative sum of a list, the problem statement asks to produce a new list whose ith elements
will be equal to the sum of the ( i + 1) elements.
Sample input & output
I/P: [2,6,8,3,1]
O/P: [2,8,16,19,20]

Enrollment No: ____________________


DEPARTMENT OF COMPUTER SCIENCE
ISHLS

Branch & Semester : Int.M.Sc(CA&IT)–VII/M.Sc-IT–I/Int. MCA-VII/MCA Total Marks: 40


End Semester Practical Examination (Nov/Dec 2019)
Subject Code & Name : IMSC0705/MSC0109/IMCA0708/MCA-312 - Introduction to Python
Date & Day : 04th November -2019 Wednesday

Write a python script to print and write in file all prime numbers in an interval between the range which is entered by
user.

Enrollment No: ____________________


DEPARTMENT OF COMPUTER SCIENCE
ISHLS

Branch & Semester : Int.M.Sc(CA&IT)–VII/M.Sc-IT–I/Int. MCA-VII/MCA Total Marks: 40


End Semester Practical Examination (Nov/Dec 2019)
Subject Code & Name : IMSC0705/MSC0109/IMCA0708/MCA-312 - Introduction to Python
Date & Day : 04th November -2019 Wednesday

Write a python script to Check enter number is Armstrong Number or not, also find first 3 Armstrong from
given range if not found then show appropriate message to user.

You might also like