Assignment-5
(For Loop)
1. Python Program to Print all Prime Numbers in an Interval
2. Python Program to Find the Factorial of a Number
3. Python Program to Display the multiplication Table
4. Python Program to Print the Fibonacci sequence
5. Python Program to Find the Sum of every fifth number from 0 to 500.
6. Python Program to read the password from a user. If the user enter the
correct password, i.e. “Python”. Display the message, “Welcome to python
programming”. Only three attempts are allowed.
7. Write a python function which accepts a string containing a pattern of
brackets and returns true if the pattern of brackets is correct. Otherwise it
returns false.
The string of brackets is correct if it satisfies the following conditions:
1. Number of opening and closing brackets are equal.
2. Pattern should not start with closing bracket and end with opening bracket.
Sample Input Expected Output
)()((()()) False
()((())()) True