Lab - 3
Lab - 3
11-08-2021
Lab 3 – Problem Solving
Section One: Statements and loops
1. Write a Python program to find those numbers which are divisible by 7 and multiple of
5, between 1500 and 2700 (both included).
4. Write a Python program to construct the following pattern, using a nested for loop.
*
**
***
****
*****
****
***
**
*
5. Write a Python program that accepts a word from the user and reverse it.
Section Two: List - Exercises
5. Write a Python program to count the number of strings where the string length is 2 or
more and the first and last character are same from a given list of strings.
Sample List : ['abc', 'xyz', 'aba', '1221']
Expected Result : 2