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

Python Lab Assignment-1.Doc

The document outlines a lab assignment for programming using Python, requiring students to complete five tasks including printing patterns, finding the greatest of three integers, generating series, calculating percentage and division from marks, reversing digits, and identifying prime numbers. Additional tasks involve summing digits of an integer, counting words in a string, replacing characters in a string, and performing list operations through a menu-driven program. The assignment aims to enhance practical programming skills in Python.

Uploaded by

mibzet2008
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Python Lab Assignment-1.Doc

The document outlines a lab assignment for programming using Python, requiring students to complete five tasks including printing patterns, finding the greatest of three integers, generating series, calculating percentage and division from marks, reversing digits, and identifying prime numbers. Additional tasks involve summing digits of an integer, counting words in a string, replacing characters in a string, and performing list operations through a menu-driven program. The assignment aims to enhance practical programming skills in Python.

Uploaded by

mibzet2008
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Programming using Python

Lab Assignment - 1
Attempt any FIVE:
Print the following patterns:
(a) * (b) 1
***​ ​ 12
***** 1 2 3
******* 1 2 3 4

Input any three integer numbers. Print the greatest number.


Print 10 terms of the following series:
5,10,15,20……. (b) 1, 1/3, 1/5, 1/7……
Input name and Marks in three subjects of a student. Print percentage and division.
Input an Integer number. Print reverse digits.
Print all the prime numbers falling between 1 to 100.
Write a program which prints sum of the digits of any integer number which is input
by the user. (Example: Number input: 5673 Output: 21 )
Write a program that takes a string as an input. Count the number of words in the
string without using a library function.
Write a program that takes a string as input. Print the string with every successive
character replaced with a ‘*’. For example, “balloon” is printed as “bal*o*n”.
Write a menu driven program to perform list operations: create, append, insert, remove,
pop and clear.

You might also like