The document outlines an assignment consisting of seven Python programming tasks, including printing prime numbers, calculating factorials, displaying multiplication tables, generating Fibonacci sequences, summing specific numbers, validating a password, and checking the correctness of bracket patterns. Each task requires the implementation of specific functions or logic to achieve the desired output. Sample inputs and expected outputs are provided for the bracket validation task.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
3 views1 page
Assignment-5
The document outlines an assignment consisting of seven Python programming tasks, including printing prime numbers, calculating factorials, displaying multiplication tables, generating Fibonacci sequences, summing specific numbers, validating a password, and checking the correctness of bracket patterns. Each task requires the implementation of specific functions or logic to achieve the desired output. Sample inputs and expected outputs are provided for the bracket validation task.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
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.