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.