Professional Documents
Culture Documents
Python Assignment-2
Python Assignment-2
Q2. Draw a flow chart to find largest of three numbers input. Write a program a to find
largest of the three numbers input according to the flowchart?
Q4. Explain the following loops with a flow diagram, syntax, and suitable examples.
I) For II) while.
Q5. Explain continue, break, and pass statements with suitable examples.
Q6. Write a program to determine if the year input by user is a leap year or not.
Q9. Program to check whether a number input is divisible by 2 or 3 using nested if.
Q10. Write a Python program to construct the following pattern, using a nested for loop.
*
**
***
****
*****
****
***
**
*